diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-17 14:59:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-17 14:59:39 +0800 |
commit | 5e3b44234899bf57f2688d48ef617357ef706669 (patch) | |
tree | aa41e119430a773ab5c300a3e3387edd8a3dcc8d /script-beta/vm/eachRef.lua | |
parent | 41d83a00788d2232ef6781ee337acc3d0c380bf2 (diff) | |
download | lua-language-server-5e3b44234899bf57f2688d48ef617357ef706669.zip |
eachDef
Diffstat (limited to 'script-beta/vm/eachRef.lua')
-rw-r--r-- | script-beta/vm/eachRef.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua index 456e59e1..94952568 100644 --- a/script-beta/vm/eachRef.lua +++ b/script-beta/vm/eachRef.lua @@ -3,10 +3,6 @@ local files = require 'files' local vm = require 'vm.vm' local library = require 'library' local await = require 'await' -local vm = require 'vm.vm' -local guide = require 'parser.guide' -local files = require 'files' -local library = require 'library' local function ofSelf(state, loc, callback) -- self 的2个特殊引用位置: @@ -466,7 +462,10 @@ local function eachRef(source, result) mark[src] = mark[src] or false end end - for _ = 1, 1000 do + for _ = 1, 10000 do + if _ == 10000 then + error('stack overflow!') + end local max = #list if max == 0 then break |