Assigning to globals in strict mode

Jason Orendorff jason.orendorff at
Mon Oct 18 10:12:29 PDT 2010

On Mon, Oct 18, 2010 at 12:08 PM, Jason Orendorff
<jason.orendorff at> wrote:
>> "use strict"; this.declared = 5; declared = (delete declared, 5);
>> Will not throw, but instead will recreate the |declared| property.
> Right again.

Oops! Now I think Jeff is right about this; but you can change
  delete declared
  delete this.declared
and then the assignment would create a global property, which was
Oliver's original point.


More information about the es5-discuss mailing list