Skip to content

Commit

Permalink
Try to convert the passed class in Native.is_a?
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 9, 2013
1 parent a322965 commit 9f8869d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/native.rb
Expand Up @@ -148,7 +148,7 @@ def inspect
def self.is_a?(object, klass)
%x{
try {
return #{object} instanceof #{klass};
return #{object} instanceof #{Native.try_convert(klass)};
}
catch (e) {
return false;
Expand Down

0 comments on commit 9f8869d

Please sign in to comment.