mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
Global code runs in the realm's lexical scope in either language, so a function an earlier ES5.1 run, an indirect eval or the Function constructor made can read a let or const a later .js run declares. With the ES2015 option, a script whose function cannot replace a property of the global object throws a TypeError before any of its let or const names is declared, so a failed run leaves no name uninitialized.