Closed
Bug 725702
Opened 14 years ago
Closed 13 years ago
Reflect.parse should handle for-of loops correctly
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: jorendorff, Assigned: Benjamin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
12.90 KB,
patch
|
dherman
:
review+
|
Details | Diff | Splinter Review |
js> Reflect.parse("for (x of y) z();").body[0].type
"ForInStatement"
Whoops!
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: general → bpeterson
Attachment #641272 -
Flags: review?(dherman)
Comment 2•13 years ago
|
||
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+
Assignee | ||
Comment 3•13 years ago
|
||
(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
Comment 4•13 years ago
|
||
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
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 5•13 years ago
|
||
Status: NEW → ASSIGNED
Flags: in-testsuite+
Target Milestone: --- → mozilla17
Comment 6•13 years ago
|
||
Please remove checkin-needed when landing checkin-needed bugs.
Keywords: checkin-needed
Comment 7•13 years ago
|
||
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.
Description
•