Closed
Bug 500909
Opened 15 years ago
Closed 11 years ago
The scope of a function in the RHS of a let expression/statement includes the LHS of it
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: nanto, Unassigned)
Details
From bug 462385 comment 3 > var o = { x: "out of let" }; > let (o = { y: function () { return o.x; }, x: "rhs of let" }) alert(o.y()); > > This outputs "rhs of let". More simply, var x = 42; let (x = (function () { return x; })()) print(x); Expects 42 to be output but actually gets undefined. Confirmed in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090626 Minefield/3.6a1pre
Updated•15 years ago
|
Version: unspecified → Trunk
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•