Module isolation

Kevin Curtis kevinc1846 at
Mon Jan 11 22:13:39 PST 2010

So, a new 'eval.hermetic' could be:

- 'restricted' i.e.
"The top level binding of this in an [hermetic] evaled Program is not the
global object, but rather a frozen root object containing just the globals
defined in the ES5 spec."
- more general with a second 'global' object parameter - which can be frozen
(mandatory or optional?).

It would be interesting to see if the upcoming Modules proposal from Ihab
and Kris still requires a eval.hermetic and what it's semantics are. There
is the opportunity of achieving two goals (SES and Modules) with one feature
- which could be relatively easy to implement.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list