fix use of slot_constant vs slot_move

wip
This commit is contained in:
Torsten Ruger
2017-09-10 12:57:25 +03:00
parent a523af14f1
commit 66901eeb5b
14 changed files with 43 additions and 24 deletions

View File

@ -39,10 +39,12 @@ module MomCompile
index = 0
test = is
while(test)
assert_equal should[index] , test.class , "Wrong class for #{index+1}, #{dump(is)}"
# if we assert here, we get output pointing here. Without stack, not useful
raise "Wrong class for #{index+1}, #{dump(is)}" if should[index] != test.class
index += 1
test = test.next
end
assert 1 #just to get an assertion in the output.
end
def dump(is)
res =[]