Is the mutability of bindings in strict eval code observable in the language?

Jeff Walden jwalden+es at MIT.EDU
Mon Oct 18 10:26:57 PDT 2010

Per the delightfully mind-twisting behaviors referred to in the "Assigning to globals in strict mode" thread, |delete foo| throws in strict mode.  That's the only way I can think of (if such a delete worked) that such bindings being mutable could be observed.  And since eval code gets its own Lexical Environment, the bindings aren't observable in any code that isn't strict mode.  Is there another way?  Flipping such bindings to be non-configurable would be a nice simplicity win in SpiderMonkey, if it's doable without violating the spec.


More information about the es5-discuss mailing list