Skip to content

Commit cf7661b

Browse files
committedJul 29, 2013
Fix Native.=== on subclasses
1 parent 9975641 commit cf7661b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎corelib/opal/native.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ def Native(obj)
66

77
class Native
88
def self.===(value)
9-
`value == null || !value._klass`
9+
if self == Native
10+
`value == null || !value._klass`
11+
else
12+
super
13+
end
1014
end
1115

1216
def self.try_convert(value)

0 commit comments

Comments
 (0)
Please sign in to comment.