On Oct 28, 2014 9:27 AM, Boris Zbarsky <[email protected]> wrote:
>
> On 10/28/14, 12:23 PM, Allen Wirfs-Brock wrote: 
> > However, that won't do any thing for host defined global properties 
>
> Hmm. 
>
> That's actually a problem.  The following host defined (by DOM) global 
> properties need to be non-configurable and not shadowable when 
> evaluating script in the global scope: "window", "document", "location", 
> "top".  Allowing those to be shadowed or otherwise overridden leads to 
> security bugs. 
>

They could be specified as being handled in the same manner as the ES builtins.

Also I'll check if it's feasible to make it a runtime error for a global let to 
shadow a non configurable property of the global object.

Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to