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

Issue 1485943002: Defer CONST_LEGACY redeclaration errors until runtime in harmony mode (Closed)

Created:
5 years ago by adamk
Modified:
5 years ago
Reviewers:
Dan Ehrenberg
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

Defer CONST_LEGACY redeclaration errors until runtime in harmony mode This fixes a corner-case in redeclaration handling, where the ES2015 early error case got mixed up with legacy const handling in the parser. Redeclaration using ES2015 'let' and 'const' should be early errors, but legacy 'const' redeclaration has historically been a runtime error, and should stay that way until legacy 'const' is gone. The fix here is uglier than it might be due to https://code.google.com/p/v8/issues/detail?id=4577, which keeps us from simplifying the mess of if/else-if in the current code. BUG=v8:4576 LOG=n Committed: https://crrev.com/6c6dd449c3e17f30905a34242ebe2f0c42a24958 Cr-Commit-Position: refs/heads/master@{#32429}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M src/parsing/parser.cc View 1 chunk +3 lines, -1 line 0 comments Download
A + test/mjsunit/regress/regress-4576.js View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
adamk
5 years ago (2015-12-01 00:49:38 UTC) #2
Dan Ehrenberg
lgtm
5 years ago (2015-12-01 00:55:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485943002/1
5 years ago (2015-12-01 01:02:31 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-01 01:18:57 UTC) #6
commit-bot: I haz the power
5 years ago (2015-12-01 01:20:06 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6c6dd449c3e17f30905a34242ebe2f0c42a24958
Cr-Commit-Position: refs/heads/master@{#32429}

Powered by Google App Engine
This is Rietveld 408576698