Skip to content

Commit e5e7c27

Browse files
committed
fix
1 parent f835c0a commit e5e7c27

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

script/vm/runner.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,11 @@ function mt:_lookIntoAction(action, topNode)
270270
self:_lookIntoExp(value, topNode:copy())
271271
end
272272
if action.type == 'setlocal' then
273-
local newTopNode = self._callback(action, topNode)
274-
if newTopNode then
275-
topNode = newTopNode
273+
if action.node == self._loc then
274+
local newTopNode = self._callback(action, topNode)
275+
if newTopNode then
276+
topNode = newTopNode
277+
end
276278
end
277279
elseif action.type == 'function' then
278280
self:_launchBlock(action, topNode:copy())

0 commit comments

Comments
 (0)