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
> File.open('/dev/null').each_line(chomp: true).first
<internal:core> core/type.rb:104:in `coerce_to_failed': wrong argument type Hash (expected Integer) (TypeError)
from <internal:core> core/type.rb:93:in `execute_coerce_to'
from <internal:core> core/type.rb:85:in `coerce_to'
from <internal:core> core/io.rb:1354:in `create_each_reader'
from <internal:core> core/io.rb:1369:in `each'
from <internal:core> core/enumerator.rb:103:in `each_with_block'
from <internal:core> core/enumerator.rb:94:in `each'
from <internal:core> core/enumerable.rb:715:in `first'
from (irb):1:in `<top (required)>'
<internal:core> core/type.rb:91:in `execute_coerce_to': undefined method `to_int' for {:chomp=>true}:Hash (NoMethodError)
Did you mean? to_set
taint
from <internal:core> core/type.rb:85:in `coerce_to'
from <internal:core> core/io.rb:1354:in `create_each_reader'
from <internal:core> core/io.rb:1369:in `each'
from <internal:core> core/enumerator.rb:103:in `each_with_block'
from <internal:core> core/enumerator.rb:94:in `each'
from <internal:core> core/enumerable.rb:715:in `first'
from (irb):1:in `<top (required)>'
The text was updated successfully, but these errors were encountered:
@bjfish It'd be a good idea to search for getline_args in CRuby and see if TruffleRuby accepts chomp: for all such methods in CRuby to ensure we don't miss any other.
Possibly similar to #2205?
The text was updated successfully, but these errors were encountered: