Is ES5 Strict a fully statically scoped language?

Šime Vidas sime.vidas at gmail.com
Wed Oct 3 09:41:41 PDT 2012


In the talk "Changes to JavaScript, Part 1: EcmaScript 5", Mark Miller
states that ES5 Default contains four static scope violations (direct link:
http://www.youtube.com/watch?v=Kq4FpMe6cRs&t=42m53s). He also states that
ES5 Strict corrects these violations, making ES5 Strict is a statically
scoped language. I don't understand how that can be true, since it is
possible to dynamically add bindings to the global environment by creating
new global properties (during code evaluation). Isn't this a static scope
violation, too?

-- Šime Vidas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121003/461afe4b/attachment.html>


More information about the es-discuss mailing list