Skip to content

Commit

Permalink
modules should be instances of Module, not Class
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 22, 2013
1 parent 225fb45 commit 7716ac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions corelib/runtime.js
Expand Up @@ -119,11 +119,8 @@
}
}
else {
klass = boot_module(ClassClass, constructor)
klass = boot_module(ModuleClass, constructor)
klass._name = (base === ObjectClass ? id : base._name + '::' + id);
klass._mod$ = true;

klass._included_in = [];

create_scope(base._scope, klass, id);
}
Expand Down Expand Up @@ -155,6 +152,9 @@
// we dont inherit methods, and we dont ever instantialize it.
klass._proto = {};

klass._mod$ = true;
klass._included_in = [];

return klass;
}

Expand Down

0 comments on commit 7716ac7

Please sign in to comment.