v8/test
littledan decc7b092a 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}
2015-08-28 18:47:40 +00:00
..
benchmarks [test] Key variant flags by variant name everywhere. 2015-07-29 07:14:30 +00:00
cctest Sloppy-mode let parsing 2015-08-28 18:47:40 +00:00
intl Ensure String.prototype.normalize.length is 0 2015-08-05 15:13:45 +00:00
js-perf-test [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
memory Correctly name memory stat for context snapshot size. 2015-04-10 22:36:02 +00:00
message Parse arrow functions at proper precedence level 2015-08-26 09:36:45 +00:00
mjsunit Sloppy-mode let parsing 2015-08-28 18:47:40 +00:00
mozilla Revert "In RegExp, lastIndex is read with ToLength, not ToInteger" 2015-07-27 10:58:53 +00:00
preparser [test] Key variant flags by variant name everywhere. 2015-07-29 07:14:30 +00:00
promises-aplus Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00
simdjs [simd.js] Update to spec version 0.8.2. 2015-08-25 12:35:19 +00:00
test262 Revert "In RegExp, lastIndex is read with ToLength, not ToInteger" 2015-07-27 10:58:53 +00:00
test262-es6 Test262 roll to the 2015-8-25 version 2015-08-26 01:13:59 +00:00
unittests [Interpreter] Add support for loading literals from the constant pool. 2015-08-28 15:41:07 +00:00
webkit Correctify instanceof and make it optimizable. 2015-08-25 04:48:54 +00:00