Browse Source

fix: required return value

Akeit0 7 months ago
parent
commit
d17154c328
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/Standard/ModuleLibrary.cs

+ 1 - 1
src/Lua/Standard/ModuleLibrary.cs

@@ -27,7 +27,7 @@ public sealed class ModuleLibrary
                     ? context.State.Load(module.ReadBytes(), module.Name)
                     : context.State.Load(module.ReadText(), module.Name);
             }
-            await context.Access.RunAsync(closure, 0, cancellationToken);
+            await context.Access.RunAsync(closure, 0, context.ReturnFrameBase, cancellationToken);
             loadedTable = context.Thread.Stack.Get(context.ReturnFrameBase);
             loaded[arg0] = loadedTable;
         }