Assigning to globals in strict mode

Jeff Walden jwalden+es at MIT.EDU
Mon Oct 18 09:56:46 PDT 2010


On 10/17/2010 02:56 PM, Oliver Hunt wrote:
> Similarly
>
> "use strict"; this.declared = 5; declared = (delete declared, 5);
>
> Will not throw, but instead will recreate the |declared| property.

Shouldn't |delete declared| throw per 11.4.1 5a?

Jeff


More information about the es5-discuss mailing list