fix scoping of blockcompiler

Was accessing caller scope, but must use caller's caller as the yield itself is a call.
This commit is contained in:
Torsten Ruger
2018-07-31 18:00:42 +03:00
parent 4fe0edd1e3
commit 04bcfea8ce
6 changed files with 80 additions and 36 deletions

View File

@ -61,7 +61,7 @@ module VoolBlocks
assert @ins.left
end
def test_slots_left
assert_equal [:caller, :arguments, :arg] , @ins.left.slots
assert_equal [:caller,:caller, :arguments, :arg] , @ins.left.slots
end
end