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

Issue 1808373003: Implement ES2015 labelled function declaration restrictions (Closed)

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

Description

Implement ES2015 labelled function declaration restrictions ES#sec-islabelledfunction specifies that labelled function declarations may not occur as the body of a control flow construct such as an if statement. This patch implements those restrictions, which also eliminates a previous case resulting in a DCHECK failure which is now a SyntaxError. BUG=chromium:595309 R=adamk LOG=Y Committed: https://crrev.com/7f108b655bce12f922b5b2cec6652cefe1d6a245 Cr-Commit-Position: refs/heads/master@{#35049}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -31 lines) Patch
M src/messages.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/parsing/parser.h View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/parsing/parser.cc View 1 7 chunks +16 lines, -12 lines 0 comments Download
M src/parsing/parser-base.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/parsing/preparser.h View 1 2 chunks +6 lines, -3 lines 0 comments Download
M src/parsing/preparser.cc View 1 6 chunks +17 lines, -11 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 4 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (5 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/1808373003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808373003/1
4 years, 9 months ago (2016-03-18 00:33:32 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 00:56:23 UTC) #4
Dan Ehrenberg
4 years, 9 months ago (2016-03-24 00:31:18 UTC) #5
adamk
lgtm % style/naming Sad about the extra param, but it's at least simple to follow. ...
4 years, 9 months ago (2016-03-24 01:15:52 UTC) #6
Dan Ehrenberg
Fixed style issues
4 years, 9 months ago (2016-03-24 01:32:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808373003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808373003/20001
4 years, 9 months ago (2016-03-24 01:32:35 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-24 01:57:58 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 01:59:56 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7f108b655bce12f922b5b2cec6652cefe1d6a245
Cr-Commit-Position: refs/heads/master@{#35049}

Powered by Google App Engine
This is Rietveld 408576698