Skip to content

Commit

Permalink
Kernel#is_a? should check against included modules as well
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jan 27, 2014
1 parent 5a14d13 commit 58a92e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opal/corelib/runtime.js
Expand Up @@ -614,6 +614,12 @@
return true;
}

for (var i = 0, length = search.__inc__.length; i < length; i++) {
if (search.__inc__[i] == klass) {
return true;
}
}

search = search._super;
}

Expand Down

0 comments on commit 58a92e6

Please sign in to comment.