Closed Bug 381296 Opened 18 years ago Closed 15 years ago

"var" disappears in decompilation of for..in

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> (function() { for(var [k, v] in Iterator([1,2,3])) { } }) function () { for ([k, v] in Iterator([1, 2, 3])) { } }
Works beautifully now: js> (function() { for(var [k, v] in Iterator([1,2,3])) { } }) (function () {for (var [k, v] in Iterator([1, 2, 3])) {}})
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Possibly by patch for bug 486139 -- I've no time to confirm, if someone else has time, please verify. Else WFM. /be
You need to log in before you can comment on or make changes to this bug.