Closed
Bug 971712
Opened 10 years ago
Closed 10 years ago
Fix scope of let-bound loop variables in for loops
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 854037
People
(Reporter: wingo, Unassigned)
Details
SM's implementation of for (let x = 0; x < 10; x++); is obsolete. The current desugaring is: { let x; for (x = 0; x < 10; x++); } whereas it should create a new binding for "x" on each iteration. Here's one spec link: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-for-statement-runtime-semantics-labelledevaluation
Reporter | ||
Comment 1•10 years ago
|
||
See also https://mail.mozilla.org/pipermail/es-discuss/2014-February/036278.html.
Comment 2•10 years ago
|
||
dup of bug 854037?
Reporter | ||
Comment 3•10 years ago
|
||
Indeed; I knew there was one somewhere. (I searched for "scope", not "binding" :) Thanks André.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•