>
>
> var o = new Object();
> Loader.export(o);       // adds loader methods to o
> o.load("file.js");      // executes file.js in o's "namespace"
>
> Loader.export(this);    // add load() to global object
>
> Loader.export(Object);  // extend Object with load capability
> var p = new Object();
> p.load("file.js");
>

You might be interested in the ServerJS SecurableModules proposal:
https://wiki.mozilla.org/ServerJS/Modules/SecurableModules

Note that v8cgi fully implements the require() function, specified in the
page linked above.


Sincerely,
Ondrej Zara

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to