-
Notifications
You must be signed in to change notification settings - Fork 186
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
Array#fill double error? #2652
Comments
It's best to reproduce this outside of IRB for simplicity and smaller stacktraces:
It's simply an exception which has a cause. truffleruby/src/main/ruby/truffleruby/core/array.rb Lines 458 to 462 in 50a95cf
So I guess we should change that to be a TypeError and not ArgumentError, but otherwise I think we should leave the cause as it is to reflect the wrapped and the original exception. BTW the error message from CRuby is very confusing, |
I'm not following. The CRuby error message looks correct to me. It's only the Truffleruby error message that makes reference to the 2nd argument. |
Oh you are right, I confused the output somehow. |
Fixed in 4693f7b, thank you for the report. |
Not sure what's happening here, but it seems to raise two errors, an ArgumentError and a TypeError. It should just be a TypeError:
TruffleRuby 22.1.0:
Ruby 3.0.x:
The text was updated successfully, but these errors were encountered: