Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup boot_module() to be a bit more readable
- Loading branch information
1 parent
1f32051
commit 07ea01b
Showing
1 changed file
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,26 +138,23 @@ | |
mtor.prototype = superklass.constructor.prototype; | ||
|
||
OpalModule.prototype = new mtor(); | ||
var prototype = OpalModule.prototype; | ||
|
||
prototype._alloc = constructor; | ||
prototype._isClass = true; | ||
prototype.constructor = OpalModule; | ||
prototype._super = superklass; | ||
prototype._methods = []; | ||
prototype.__inc__ = []; | ||
prototype.__parent = superklass; | ||
|
||
var klass = new OpalModule(); | ||
|
||
klass._alloc = constructor; | ||
klass._isClass = true; | ||
klass.constructor = OpalModule; | ||
klass._super = superklass; | ||
klass._methods = []; | ||
klass.__inc__ = []; | ||
klass.__parent = superklass; | ||
// method table (_proto) for a module can be a simple js object as | ||
// we dont inherit methods, and we dont ever instantialize it. | ||
klass._proto = {}; | ||
klass._proto = {}; | ||
klass._mod$ = true; | ||
klass.__dep__ = []; | ||
|
||
klass._mod$ = true; | ||
klass.__dep__ = []; | ||
|
||
return klass; | ||
return klass; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
elia
Member
|
||
} | ||
|
||
// Boot a base class (makes instances). | ||
|
I bet this missing space is vim's fault 😆