On Thu, Sep 10, 2009 at 9:28 PM, Mark S. Miller <[email protected]> wrote:
> Inheriting between modules within the same Valija sandox (i.e.,
> sharing the same $v object) should be no problem. Inheriting between
> Valija sandboxes will be more interesting. It *should* work fine. But
> I expect a few surprises the first time we try this.

Ah yes, thank you. I had my head stuck in CommonJS land where each
module gets a new Valija sandbox.

And to expand on that: The incantation for module loading in Valija is
like this:

  includeScript('foo/bar/baz');

which pulls the named module into your Valija sandbox exactly as
though all your code were in a Web page and you had done something
like:

  <script src="foo/bar/baz.js'></script>

This means that the includeScript()-ed code has all possible access to
its including context, and thus there is no security boundary between
the including context and the includeScript()-ed code.

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA

Reply via email to