let and strict mode

Kevin Smith khs4473 at gmail.com
Thu Nov 15 11:33:26 PST 2012


I'm not quite sure how to figure this out from the current draft, but is
"let" only available from strict mode code?  This is valid under ES5
non-strict via ASI:

    var let = "123";
    let
      x = "abc";

So with 1JS in mind, it would seem that "let" would only be a keyword in
strict mode.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121115/15798e46/attachment.html>


More information about the es-discuss mailing list