diff options
Diffstat (limited to 'server/src/core/vm.lua')
-rw-r--r-- | server/src/core/vm.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index 5ccada8e..755b2e7c 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -403,7 +403,7 @@ function mt:buildFunction(exp, object) if object then local var = self:createArg('self', object.source, self:getValue(object)) - var.disableRename = true + var.hide = true func.args[1] = var end @@ -1437,6 +1437,7 @@ function mt:createEnvironment() self.results.main = self.chunk.func -- 隐藏的上值`_ENV` local parent = self:createLocal('_ENV') + parent.hide = true local envValue = self:setValue(parent, self:buildTable()) -- _ENV 有个特殊标记 envValue.ENV = true |