Skip to content

Commit 9fd4117

Browse files
committedJul 31, 2013
Check if a function is not a functional object in Native::Object#[]
1 parent 617e72e commit 9fd4117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎corelib/opal/native.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def [](key)
100100
%x{
101101
var prop = #@native[key];
102102
103-
if (typeof(prop) == "function") {
103+
if (typeof(prop) == "function" && prop._klass) {
104104
return prop;
105105
}
106106
else {

0 commit comments

Comments
 (0)