-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong number of arguments for Array#[]= subclass redefinition #2772
Comments
Thanks for the report, we'll take a look. Is there real code depending on this? |
Ah it's probably from https://github.com/djberg96/berger_spec I guess. |
In this case it was actually https://github.com/djberg96/html-table :) |
Ah, that might actually be a bug in my code then that happened to smoke out something. |
I see, https://github.com/djberg96/html-table/blob/902b12f72a3f7130331356cbd4b4de9bd7840e15/lib/html/table.rb#L207 It's a bit unfortunate because to fix that we probably have to make the core library code less clear & efficient (e.g., using |
Is it something that could be deferred for subclasses? |
Not really, that would probably be more complicated. Anyway I think we need to take that cost here and choose the better alternative of the two. |
Fixed in 534659f. |
truffleruby 22.3.0, like ruby 3.0.3, GraalVM CE Native [x86_64-darwin]
Given the following code:
With Ruby I get the expected results:
With TruffleRuby I get:
The text was updated successfully, but these errors were encountered: