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 @@ -31,6 +31,7 @@ Bug fixes:
31
31
* Fixed missing polyglot type declaration for ` RSTRING_PTR ` to help with native/managed interop.
32
32
* Fixed ` Module#to_s ` and ` Module#inspect ` to not return an extra ` #<Class: ` for singleton classes.
33
33
* Arrays backed by native storage now allocate the correct amount of memory (#1828 ).
34
+ * ` Truffle::Interop.keys ` should report methods of String and Symbol (#1817 )
34
35
35
36
Compatibility:
36
37
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