Skip to content

Commit 0945478

Browse files
committed
fix(vm): fix runOperator running operator many times
1 parent fcc9046 commit 0945478

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

script/vm/operator.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,7 @@ end
127127
function vm.runOperator(op, exp, value)
128128
local node = vm.compileNode(exp)
129129
local operators = vm.getOperators(op, node)
130-
---@type vm.node?
131-
local result
132-
for _, operator in ipairs(operators) do
133-
result = checkOperators(operators, op, value, result)
134-
end
130+
local result = checkOperators(operators, op, value, nil)
135131
return result
136132
end
137133

0 commit comments

Comments
 (0)