File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/main/ruby/truffleruby/core/truffle Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Bug fixes:
35
35
* Fixed issue in ` ConditionVariable#wait ` that could lose a ` ConditionVariable#signal ` .
36
36
* Do not leak TruffleRuby specific method Array#swap (#1816 )
37
37
* Fixed ` #inspect ` on broken UTF-8 sequences (#1842 , @chrisseaton ).
38
+ * ` Truffle::Interop.keys ` should report methods of String and Symbol (#1817 )
38
39
39
40
Compatibility:
40
41
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def self.object_keys(object, internal)
44
44
# TODO (pitr-ch 23-May-2019): add assert that called methods are in members list
45
45
if object . is_a? ( Hash )
46
46
keys = object . keys # FIXME (pitr-ch 11-May-2019): no return methods
47
- elsif object . respond_to? ( :[] ) && !object . is_a? ( Array )
47
+ elsif object . respond_to? ( :[] ) && !object . is_a? ( Array ) && ! object . is_a? ( String ) && ! object . is_a? ( Symbol )
48
48
# FIXME (pitr-ch 11-May-2019): remove the branch
49
49
keys = [ ]
50
50
else
You can’t perform that action at this time.
0 commit comments