Closed
Bug 637246
Opened 15 years ago
Closed 15 years ago
generator.close() should return undefined
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dherman, Assigned: luke)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
|
2.52 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
Apparently generator.close() got turned into a fast native but doesn't explicitly return the undefined value, so it accidentally returns the callee from the operand stack:
js> (function(){yield})().close()
function close() {[native code]}
Dave
| Assignee | ||
Comment 1•15 years ago
|
||
Arg, incomplete human-powered control flow analysis.
Thanks for finding Dave!
Updated•15 years ago
|
Attachment #515672 -
Flags: review?(brendan) → review+
| Assignee | ||
Comment 2•15 years ago
|
||
Trivial patch fixing minor bug; hard to judge whether I should request approval for 2.0. I'm going to default to 'no' given the late stage.
Comment 3•15 years ago
|
||
Not a regression, ancient bug -- can't block but couldn't hurt. Land when Fx4 has "branched" is the right answer.
/be
| Assignee | ||
Comment 4•15 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•