Comment #14 on issue 3305 by [email protected]: Make ES6 constructs
available in sloppy mode
https://code.google.com/p/v8/issues/detail?id=3305#c14
The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/decc7b092ae90a378423df760690d58585e9ac71
commit decc7b092ae90a378423df760690d58585e9ac71
Author: littledan <[email protected]>
Date: Fri Aug 28 18:47:30 2015
Sloppy-mode let parsing
This patch makes 'let' a contextual keyword in both strict and sloppy mode.
It behaves as a keyword when used at the beginning of a StatementListItem
or lexical declaration at the beginning of a for statement, if it is
followed
by an identifier, [ or {. Implementing this change requires an extra token
look-ahead by the parser which is only invoked in certain cases (so as to
avoid parsing RegExps as ECMAScript tokens). This might result in a slowdown
of the scanner, but performance testing of this patch hasn't yet found much
of a regression.
BUG=v8:3305
LOG=Y
R=adamk,vogelheim
Review URL: https://codereview.chromium.org/1315673009
Cr-Commit-Position: refs/heads/master@{#30451}
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/src/parser.cc
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/src/preparser.cc
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/src/preparser.h
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/src/scanner.cc
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/src/scanner.h
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/src/token.h
[modify]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/test/cctest/test-parsing.cc
[add]
http://crrev.com/decc7b092ae90a378423df760690d58585e9ac71/test/mjsunit/harmony/block-let-contextual-sloppy.js
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.