Assigning to globals in strict mode

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


On 10/18/2010 10:09 AM, Oliver Hunt wrote:
> Am I missing something important?  Does delete fail for all properties on the global object in strict mode?
>
> Or does the behaviour of put in strict mode result in new properties on the global object always being configurable = false?

This doesn't have anything to do with configurability, I think -- you don't get far enough to know the binding is mutable.  It's simply that delete throws when provided an unqualified name (identifier), because such a name always evaluates to a Reference with an environment record as its base.

Jeff


More information about the es5-discuss mailing list