Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Issue 1274193004: Let eval scope (Closed)

Created:
5 years, 4 months ago by Dan Ehrenberg
Modified:
5 years, 4 months ago
Reviewers:
adamk
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Use a new lexical context for sloppy-mode eval In ES6, direct eval() in sloppy mode uses the enclosing function-level ("var") scope for var-style bindings and a new lexical scope for lexical bindings like let and class. This patch implements that feature by making lexical bindings that are directly within an EVAL_SCOPE be on the local scope rather than the enclosing one. BUG=v8:4288 LOG=Y R=adamk Committed: https://crrev.com/d03191beb1888b272e51912ebc45c4e8794f2060 Cr-Commit-Position: refs/heads/master@{#30120}

Patch Set 1 #

Patch Set 2 : Fix webkit test similar to in trunk #

Total comments: 1

Patch Set 3 : Fix another test #

Total comments: 7

Patch Set 4 : Changes for code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -35 lines) Patch
M src/parser.cc View 1 2 3 3 chunks +22 lines, -17 lines 0 comments Download
M src/scopes.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M test/mjsunit/harmony/block-conflicts-sloppy.js View 2 chunks +5 lines, -12 lines 0 comments Download
M test/webkit/class-syntax-name.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/webkit/class-syntax-name-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274193004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274193004/1
5 years, 4 months ago (2015-08-10 22:55:48 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/4801)
5 years, 4 months ago (2015-08-10 22:58:49 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274193004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274193004/1
5 years, 4 months ago (2015-08-10 23:15:46 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/3124)
5 years, 4 months ago (2015-08-10 23:23:16 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274193004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274193004/20001
5 years, 4 months ago (2015-08-10 23:44:49 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/8436)
5 years, 4 months ago (2015-08-10 23:53:53 UTC) #15
adamk
https://codereview.chromium.org/1274193004/diff/20001/test/webkit/class-syntax-name-expected.txt File test/webkit/class-syntax-name-expected.txt (right): https://codereview.chromium.org/1274193004/diff/20001/test/webkit/class-syntax-name-expected.txt#newcode111 test/webkit/class-syntax-name-expected.txt:111: FAIL var result = A; class A {}; result ...
5 years, 4 months ago (2015-08-11 00:18:13 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274193004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274193004/40001
5 years, 4 months ago (2015-08-11 00:24:49 UTC) #19
Dan Ehrenberg
5 years, 4 months ago (2015-08-11 00:36:26 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-11 00:47:18 UTC) #22
adamk
https://codereview.chromium.org/1274193004/diff/40001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1274193004/diff/40001/src/parser.cc#newcode2016 src/parser.cc:2016: // Similarly, strict mode eval scope does not leak ...
5 years, 4 months ago (2015-08-11 01:17:43 UTC) #23
Dan Ehrenberg
https://codereview.chromium.org/1274193004/diff/40001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1274193004/diff/40001/src/parser.cc#newcode2019 src/parser.cc:2019: declaration_scope->is_strict_eval_scope() || On 2015/08/11 at 01:17:43, adamk wrote: > ...
5 years, 4 months ago (2015-08-11 20:57:02 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274193004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274193004/60001
5 years, 4 months ago (2015-08-11 20:57:23 UTC) #28
adamk
lgtm
5 years, 4 months ago (2015-08-11 21:08:30 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-11 21:26:15 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274193004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274193004/60001
5 years, 4 months ago (2015-08-11 21:28:41 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-11 21:30:32 UTC) #34
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 21:30:52 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d03191beb1888b272e51912ebc45c4e8794f2060
Cr-Commit-Position: refs/heads/master@{#30120}

Powered by Google App Engine
This is Rietveld 408576698