tcr / mug

A self-hosted JavaScript compiler for the JVM. Written in CoffeeScript.
150 stars 5 forks source link

JSModules shouldn't require instantiation #17

Open tcr opened 13 years ago

tcr commented 13 years ago

JSModule.require() should reflect the require() call, instantiating a module and returning its exports object. JSModule's constructor would thus be hidden. The load() call would be removed.