Skip to content

Commit

Permalink
Merge pull request #156 from Silv3rPRO/feature-require-modulename
Browse files Browse the repository at this point in the history
Pass the module name as a parameter to modules loaded with require
  • Loading branch information
xanathar authored Oct 3, 2016
2 parents 79af020 + dd45b65 commit 2b4208b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MoonSharp.Interpreter/CoreLib/LoadModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static DynValue __require_clr_impl(ScriptExecutionContext executionContex
local func = __require_clr_impl(modulename);
local res = func();
local res = func(modulename);
package.loaded[modulename] = res;
Expand Down

0 comments on commit 2b4208b

Please sign in to comment.