Closed Bug 725702 Opened 14 years ago Closed 13 years ago

Reflect.parse should handle for-of loops correctly

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: jorendorff, Assigned: Benjamin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

js> Reflect.parse("for (x of y) z();").body[0].type "ForInStatement" Whoops!
Attached patch for of supportSplinter Review
Assignee: general → bpeterson
Attachment #641272 - Flags: review?(dherman)
Comment on attachment 641272 [details] [diff] [review] for of support >+ bool forOfOrIn(ParseNode *loop, ParseNode *head, Value var, Value stmt, Value *dst); This name kinda bugs me, but I can't think of a better name. r=me
Attachment #641272 - Flags: review?(dherman) → review+
(In reply to Dave Herman [:dherman] from comment #2) > Comment on attachment 641272 [details] [diff] [review] > for of support > > >+ bool forOfOrIn(ParseNode *loop, ParseNode *head, Value var, Value stmt, Value *dst); > > This name kinda bugs me, but I can't think of a better name. The name of the function or some argument name? > > r=me
The name of the function. Seems like there should be some technical term for "higher-level loops that iterate over objects" but I don't have one. So forOfOrIn is probably fine. Dave
Keywords: checkin-needed
Status: NEW → ASSIGNED
Flags: in-testsuite+
Target Milestone: --- → mozilla17
Please remove checkin-needed when landing checkin-needed bugs.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: