Split off a separate --harmony_sloppy_let flag
authorlittledan <littledan@chromium.org>
Sat, 25 Jul 2015 00:05:08 +0000 (17:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 25 Jul 2015 00:05:18 +0000 (00:05 +0000)
commit2d2b72f6382df11056fb9c39da0581be85510459
treeeb2d9506189025245473ece7c9ab25859eebd6bf
parentf06754a8e1d305a43560705f6c167d85d40e602d
Split off a separate --harmony_sloppy_let flag

--harmony_sloppy includes behavior to turn on sloppy mode lexical
bindings. Before this patch, it also included a way to parse let
which is likely web-incompatible (let is disallowed as an
identifier). This patch splits off the let parsing from the more
general block scoping code, so that block scoping can be developed
independently.

R=adamk
LOG=N
BUG=v8:3305

Review URL: https://codereview.chromium.org/1255013002

Cr-Commit-Position: refs/heads/master@{#29855}
14 files changed:
src/bootstrapper.cc
src/flag-definitions.h
src/parser.cc
src/preparser.h
test/cctest/test-parsing.cc
test/mjsunit/harmony/block-conflicts-sloppy.js
test/mjsunit/harmony/block-const-assign-sloppy.js
test/mjsunit/harmony/block-for-sloppy.js
test/mjsunit/harmony/block-leave-sloppy.js
test/mjsunit/harmony/block-let-crankshaft-sloppy.js
test/mjsunit/harmony/block-let-declaration-sloppy.js
test/mjsunit/harmony/block-let-semantics-sloppy.js
test/mjsunit/harmony/block-scoping-sloppy.js
test/mjsunit/harmony/block-scoping-top-level-sloppy.js