revive let blocks

Boris Zbarsky bzbarsky at mit.edu
Thu Jun 18 16:55:56 UTC 2015


On 6/18/15 11:30 AM, Rick Waldron wrote:
> Strange, this works in the console, but not in a script
> https://i.gyazo.com/e55d26495c3fe8b01938fe1b99664682.png

Yep, it's entirely possible the console opts in to let.

It also exposes some APIs that are not exposed in web pages by default 
and a few other interesting things like that...  Evaluating things in 
the console and in the currently loaded web page are _almost_ the same, 
but not quite.

In addition, in the particular screenshot you have there the currently 
loaded page is the Firefox start page, which is not exactly a normal web 
page either, so may have its own interesting things going on with both 
the script environment and its global.

-Boris


More information about the es-discuss mailing list