Closed
Bug 637246
Opened 13 years ago
Closed 13 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•13 years ago
|
||
Arg, incomplete human-powered control flow analysis. Thanks for finding Dave!
Updated•13 years ago
|
Attachment #515672 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 2•13 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•13 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•13 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/f5fbe627578d
Whiteboard: fixed-in-tracemonkey
Comment 5•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f5fbe627578d
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
•