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

Issue 869293002: Lexical declarations should not be allowed in Statement (Closed)

Created:
5 years, 11 months ago by arv (Not doing code reviews)
Modified:
5 years, 10 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Lexical declarations should not be allowed in Statement For example let and class should only be allowed inside function/block/script. We have to continue to support const in statements in sloppy mode for backwards compatibility. BUG=3831 LOG=Y R=dslomov@chromium.org, adamk Committed: https://crrev.com/13616615fd97f9cdde7ac93a883049a5f5122c82 Cr-Commit-Position: refs/heads/master@{#26337}

Patch Set 1 #

Patch Set 2 : Add bug URL #

Patch Set 3 : Allow const in sloppy statements again #

Patch Set 4 : Update comment a bit #

Patch Set 5 : Update comment a bit #

Total comments: 5

Patch Set 6 : Code review feedback #

Patch Set 7 : Remove unused error messages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -72 lines) Patch
M src/messages.js View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 4 chunks +33 lines, -35 lines 0 comments Download
M src/preparser.cc View 1 2 3 4 5 6 4 chunks +43 lines, -31 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 3 chunks +27 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
arv (Not doing code reviews)
Add bug URL
5 years, 11 months ago (2015-01-23 17:52:03 UTC) #1
arv (Not doing code reviews)
Allow const in sloppy statements again
5 years, 11 months ago (2015-01-23 19:32:08 UTC) #2
arv (Not doing code reviews)
Update comment a bit
5 years, 11 months ago (2015-01-23 19:52:17 UTC) #3
arv (Not doing code reviews)
Update comment a bit
5 years, 11 months ago (2015-01-23 19:53:03 UTC) #4
arv (Not doing code reviews)
PTAL
5 years, 11 months ago (2015-01-23 19:53:54 UTC) #5
adamk
Moving LET/CONST parsing out of ParseStatement creates some dead branches in ParseVariableDeclarations(). I'm guessing we ...
5 years, 11 months ago (2015-01-23 20:11:39 UTC) #6
arv (Not doing code reviews)
On 2015/01/23 20:11:39, adamk wrote: > Moving LET/CONST parsing out of ParseStatement creates some dead ...
5 years, 11 months ago (2015-01-23 21:03:12 UTC) #7
arv (Not doing code reviews)
Code review feedback
5 years, 10 months ago (2015-01-30 02:10:05 UTC) #8
arv (Not doing code reviews)
Remove unused error messages
5 years, 10 months ago (2015-01-30 02:16:22 UTC) #9
arv (Not doing code reviews)
PTAL
5 years, 10 months ago (2015-01-30 02:18:48 UTC) #10
adamk
lgtm
5 years, 10 months ago (2015-01-30 02:57:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/869293002/120001
5 years, 10 months ago (2015-01-30 03:08:33 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-01-30 03:10:08 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 03:10:27 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/13616615fd97f9cdde7ac93a883049a5f5122c82
Cr-Commit-Position: refs/heads/master@{#26337}

Powered by Google App Engine
This is Rietveld 408576698