diff options
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index ad3295f7..9968c4b9 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1886,6 +1886,10 @@ local function compileByGlobal(source) end end end + -- Set all globals node first to avoid recursive + for _, set in ipairs(global:getSets(uri)) do + vm.setNode(set, globalNode) + end for _, set in ipairs(global:getSets(uri)) do if set.value then if not hasMarkDoc or guide.isLiteral(set.value) then |