New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 591273 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Hide additional generated scopes from users.

Reported by sergeyv@chromium.org, Mar 2 2016

Issue description

For "for" statement with let V8 generates two scopes with i (inner for actual "let", outer to carry over value between iteration) and this looks strange from user perspective, and DevTools should hide outer scope.
More discussion on this could be found here: https://codereview.chromium.org/1653083002/

Example of this behaviour could be found in  v8/test/mjsunit/debug-scopes.js  at the test "Scope positions in for statement".
 
Note that this is not the only example of the parser introducing a scope for desugaring.
Status: Fixed (was: Assigned)
This has been fixed in https://codereview.chromium.org/1901413002

Sign in to add a comment