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

Issue 2347633002: [parser] Fix unfinalized block scope in non-lexical for each (Closed)

Created:
4 years, 3 months ago by nickie
Modified:
4 years, 3 months ago
Reviewers:
adamk, marja
CC:
v8-reviews_googlegroups.com, Toon Verwaest
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Fix unfinalized block scope in non-lexical for each In release mode, statements like: var i; for (i of [0]) { let j; debugger; } would end up with one more block scope than in the debug modes. R=adamk@chromium.org, marja@chromium.org BUG= LOG=N Committed: https://crrev.com/be20666469d2bd28c2b40a4c6cb5085aee420fea Cr-Commit-Position: refs/heads/master@{#39465}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -1 line) Patch
M src/parsing/parser.cc View 1 chunk +3 lines, -1 line 1 comment Download
M test/mjsunit/debug-scopes.js View 1 chunk +96 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
nickie
4 years, 3 months ago (2016-09-15 14:47:46 UTC) #1
nickie
This was a tricky one. Without this patch, the last of the added tests would ...
4 years, 3 months ago (2016-09-15 14:50:04 UTC) #3
nickie
https://codereview.chromium.org/2347633002/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (left): https://codereview.chromium.org/2347633002/diff/1/src/parsing/parser.cc#oldcode2670 src/parsing/parser.cc:2670: DCHECK_NULL(for_state.FinalizedBlockScope()); Method FinalizedBlockScope() has side effects, especially in the ...
4 years, 3 months ago (2016-09-15 14:54:25 UTC) #6
adamk
lgtm Nice catch, this is a problem I run into ~once a year, where something ...
4 years, 3 months ago (2016-09-15 15:54:45 UTC) #9
marja
lgtm - nice catch!
4 years, 3 months ago (2016-09-16 08:24:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2347633002/1
4 years, 3 months ago (2016-09-16 08:37:19 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-16 08:39:44 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 08:40:12 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/be20666469d2bd28c2b40a4c6cb5085aee420fea
Cr-Commit-Position: refs/heads/master@{#39465}

Powered by Google App Engine
This is Rietveld 408576698