You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JRuby+Truffle does not properly pass arguments to a zsuper call made within a block. Instead of looking at the method argument list, it looks at the values yielded to the block.
Example:
class Base
def visit(o)
puts o
end
end
class Sub < Base
def with_node
yield :wrong
end
def visit(o)
with_node do |x|
super
end
end
end
Sub.new.visit :correct
* So finding the right frame and slot is done by the findLocalVarNode helper.
* Clarify the strange case of zsuper without a surrounding method.
* Fixesjruby#3106.
JRuby+Truffle does not properly pass arguments to a zsuper call made within a block. Instead of looking at the method argument list, it looks at the values yielded to the block.
Example:
MRI 2.2.2:
JRuby+Truffle 9K:
The text was updated successfully, but these errors were encountered: