diff options
| author | ruki <[email protected]> | 2025-01-09 00:50:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-09 00:50:52 +0800 |
| commit | ed685ecd74c5267781713f3bd00ce4e4e40b27d7 (patch) | |
| tree | 3e3e9bee672f1570ac4712edb31c2fd2d5abb27d /xmake/core/base/interpreter.lua | |
| parent | a74774a809de30e6e473157233aa47bbabb272d4 (diff) | |
add namespace to sandbox
Diffstat (limited to 'xmake/core/base/interpreter.lua')
| -rw-r--r-- | xmake/core/base/interpreter.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index 72886e0d2..4e5aaf8c7 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -647,7 +647,7 @@ function interpreter:_script(script) end -- make sandbox instance with the given script - local instance, errors = sandbox.new(script, self:filter(), self:scriptdir()) + local instance, errors = sandbox.new(script, {filter = self:filter(), rootdir = self:scriptdir(), namespace = self:namespace()}) if not instance then return nil, errors end |
