-
Notifications
You must be signed in to change notification settings - Fork 14
Description
This seems kinda similar to #906, but with kwargs instead of optional args. I haven't had a chance to look too closely, but I'm guessing the second getlocal is reading from the VM stack (because the block changes how we compile getlocal) and the values there are in the wrong order (because they were passed in the opposite direction).
def a(b:, c:)
if c == :b
return -> {}
end
raise "c is :b!" if c == :b
end
def test
# note opposite order of kwargs
a(c: :c, b: :b)
end
test
testFails as of 8c7e6f2 with --zjit-call-threshold=2
Metadata
Metadata
Assignees
Labels
No labels