Closed ShockwaveNN closed 1 year ago
Hi, trying to migrate some of my libraries to truffleruby and found this difference between truffleruby and MRI
The code is quite simple:
Complex('a+5i')
Running this (in irb for example) on MRI 3.1 raise an exception:
irb
(irb):3:in `Complex': invalid value for convert(): "a+5i" (ArgumentError)
Running this in truffleruby 22.2.0returns (0+0i) without any exception
truffleruby 22.2.0
(0+0i)
Thank you for reporting the issue. Fixed in fb8887c8f85c9f3a57d66d38d2625022d4191556.
Thanks
Hi, trying to migrate some of my libraries to truffleruby and found this difference between truffleruby and MRI
The code is quite simple:
Running this (in
irb
for example) on MRI 3.1 raise an exception:Running this in
truffleruby 22.2.0
returns(0+0i)
without any exception