From da08423453d5b2e0c60fbee50b86ce1a7e03ba82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 4 Nov 2019 11:00:30 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=20uri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/parser/compile.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'server-beta/src/parser/compile.lua') diff --git a/server-beta/src/parser/compile.lua b/server-beta/src/parser/compile.lua index 51803753..9f92fb53 100644 --- a/server-beta/src/parser/compile.lua +++ b/server-beta/src/parser/compile.lua @@ -3,7 +3,7 @@ local type = type _ENV = nil -local pushError, Compile, CompileBlock, Cache, Block, GoToTag, Version, ENVMode, Compiled, ValueID +local pushError, Compile, CompileBlock, Block, GoToTag, ENVMode, Compiled local function addRef(node, obj) if not node.ref then @@ -425,21 +425,17 @@ return function (self, lua, mode, version) return nil, err end pushError = state.pushError - Version = version if version == 'Lua 5.1' or version == 'LuaJIT' then ENVMode = 'fenv' else ENVMode = '_ENV' end - Cache = {} Compiled = {} GoToTag = {} - ValueID = 0 if type(state.ast) == 'table' then Compile(state.ast) end PostCompile() - Cache = nil Compiled = nil GoToTag = nil return state -- cgit v1.2.3