Browse Source

Remove: exception wrapper

AnnulusGames 1 year ago
parent
commit
5ddebf93b3
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/Lua/LuaFunction.cs

+ 0 - 4
src/Lua/LuaFunction.cs

@@ -26,10 +26,6 @@ public abstract partial class LuaFunction
         {
             return await InvokeAsyncCore(context, buffer, cancellationToken);
         }
-        catch (Exception ex) when (ex is not (LuaException or OperationCanceledException))
-        {
-            throw new LuaRuntimeException(state.GetTraceback(), ex.Message);
-        }
         finally
         {
             thread.PopCallStackFrame();