Closed
Bug 397035
Opened 18 years ago
Closed 18 years ago
Incorrect behavior for destructuring assignment in Iterator
Categories
(Rhino Graveyard :: Compiler, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: norrisboyd, Assigned: norrisboyd)
Details
I'm going through the examples on the mozdev site.
This seems like it should work:
js> var obj = { width: 3, length: 1.5, color: "orange" };
js> for (let [name, value] in Iterator(obj)) { print("name: " + name + ", value: " + value)}
It's based on the example in "Looping across objects". It doesn't ever execute the block. Same behavior if you leave out the Iterator() call and just say:
for (let [name, value] in obj) {...}
| Assignee | ||
Comment 1•18 years ago
|
||
Fixed:
Checking in NodeTransformer.java;
/cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/NodeTransformer.java,v <-- NodeTransformer.java
new revision: 1.77; previous revision: 1.76
done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•