Skip to content

Commit

Permalink
Support meta/singleton classes in super hierarchy chains
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 8, 2013
1 parent 442b7f5 commit e86256b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions corelib/kernel.rb
Expand Up @@ -465,6 +465,7 @@ def singleton_class
#{self}.__meta__ = meta;
meta._klass = orig_class._klass;
meta._scope = orig_class._scope;
meta.__parent = orig_class;
return meta;
}
Expand Down
2 changes: 1 addition & 1 deletion corelib/runtime.js
Expand Up @@ -416,7 +416,7 @@
};

var find_obj_super_dispatcher = function(obj, jsid, current_func) {
var klass = obj._klass;
var klass = obj.__meta__ || obj._klass;

while (klass) {
if (klass._proto['$' + jsid] === current_func) {
Expand Down

0 comments on commit e86256b

Please sign in to comment.