Skip to content

Commit 66c5f20

Browse files
committed
Fix IO.try_convert parameter conversion
1 parent 5b9cd81 commit 66c5f20

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Bug fixes:
7272
* Fixed character length after conversion to binary from a non-US-ASCII String.
7373
* Fixed issue with installing latest bundler (#1880).
7474
* Fixed type conversion for `Numeric#step` `step` parameter.
75+
* Fixed `IO.try_convert` parameter conversion.
7576

7677
Compatibility:
7778

spec/tags/core/io/try_convert_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/ruby/truffleruby/core/io.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def self.read(name, length_or_options=undefined, offset=0, options=nil)
650650
end
651651

652652
def self.try_convert(obj)
653-
Truffle::Type.try_convert obj, IO, :to_io
653+
Truffle::Type.rb_check_convert_type obj, IO, :to_io
654654
end
655655

656656
def self.normalize_options(mode, options)

0 commit comments

Comments
 (0)