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

Issue 1060883004: [strong] Implement static restrictions on binding 'undefined' in arrow functions (Closed)

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

Description

[strong] Implement static restrictions on binding 'undefined' in arrow functions Implements the strong mode proposal's static restrictions on the use of the identifier 'undefined', for arrow functions. Assumes these restrictions are intended to be identical to the restrictions on the use of 'eval and 'arguments' in strict mode. In addition, Location variables inconsistantly named (e.g. dupe_error_loc vs dupe_loc) are now consistently named the shorter way. Baseline: https://codereview.chromium.org/1070633002 BUG=v8:3956 LOG=N Committed: https://crrev.com/3d5717a71bdc19c584c277edce9f75a06e95895f Cr-Commit-Position: refs/heads/master@{#27756}

Patch Set 1 #

Patch Set 2 : fix a merge mistake and formatting #

Total comments: 1

Patch Set 3 : Add tests/fix some existing test flags. #

Total comments: 14

Patch Set 4 : Forgot harmony-sloppy flag in undefined-arrow.js #

Patch Set 5 : cr feedback #

Total comments: 2

Patch Set 6 : linebreak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -81 lines) Patch
M src/parser.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.cc View 1 7 chunks +25 lines, -21 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 12 chunks +73 lines, -39 lines 0 comments Download
M src/preparser.cc View 1 3 chunks +14 lines, -15 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 1 chunk +36 lines, -1 line 0 comments Download
M test/mjsunit/strong/undefined.js View 1 2 3 4 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
conradw
On 2015/04/10 12:27:01, conradw wrote: > mailto:conradw@chromium.org changed reviewers: > + mailto:rossberg@chromium.org PTAL
5 years, 8 months ago (2015-04-10 12:27:13 UTC) #3
conradw
https://codereview.chromium.org/1060883004/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1060883004/diff/40001/src/preparser.h#newcode3067 src/preparser.h:3067: // Workaround for preparser not keeping track of positions. ...
5 years, 8 months ago (2015-04-10 12:27:45 UTC) #4
rossberg
https://codereview.chromium.org/1060883004/diff/80001/src/preparser.h File src/preparser.h (left): https://codereview.chromium.org/1060883004/diff/80001/src/preparser.h#oldcode169 src/preparser.h:169: Accidental line deletion? https://codereview.chromium.org/1060883004/diff/80001/src/preparser.h#oldcode3012 src/preparser.h:3012: Accidental line deletion? https://codereview.chromium.org/1060883004/diff/80001/src/preparser.h ...
5 years, 8 months ago (2015-04-10 14:02:56 UTC) #10
conradw
https://codereview.chromium.org/1060883004/diff/80001/src/preparser.h File src/preparser.h (left): https://codereview.chromium.org/1060883004/diff/80001/src/preparser.h#oldcode169 src/preparser.h:169: On 2015/04/10 14:02:56, rossberg wrote: > Accidental line deletion? ...
5 years, 8 months ago (2015-04-10 14:20:49 UTC) #13
rossberg
lgtm https://codereview.chromium.org/1060883004/diff/220001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1060883004/diff/220001/src/preparser.h#newcode915 src/preparser.h:915: const { Nit: get rid of line break
5 years, 8 months ago (2015-04-10 15:58:02 UTC) #14
conradw
https://codereview.chromium.org/1060883004/diff/220001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1060883004/diff/220001/src/preparser.h#newcode915 src/preparser.h:915: const { On 2015/04/10 15:58:02, rossberg wrote: > Nit: ...
5 years, 8 months ago (2015-04-10 16:02:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060883004/240001
5 years, 8 months ago (2015-04-10 16:02:30 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:240001)
5 years, 8 months ago (2015-04-10 18:27:11 UTC) #19
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 18:27:18 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3d5717a71bdc19c584c277edce9f75a06e95895f
Cr-Commit-Position: refs/heads/master@{#27756}

Powered by Google App Engine
This is Rietveld 408576698