Closed
Bug 993389
Opened 11 years ago
Closed 7 years ago
isGenerator fails for bound functions
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: asaf, Unassigned)
References
Details
var f = function*() { }.bind(this);
f.isGenerator()
returns false.
Updated•11 years ago
|
Summary: isGenerator fails for bounded functions → isGenerator fails for bound functions
Comment 1•11 years ago
|
||
The isGenerator() method is "not a well-motivated reflective operation", so it's not clear it should even exist. You'd do better to write your code in such a way that you don't even have to ask the question, at least if my understanding of #jslang discussion is correct.
Reporter | ||
Comment 2•11 years ago
|
||
Hey Jeff, Do you mind looking at the use case in PlacesTransaction.jsm (the transact method) - isGenerator is used for input validation.
Comment 4•7 years ago
|
||
isGenerator will be removed in bug 1119777, as it works only for legacy generator that will also be removed near future.
You need to log in
before you can comment on or make changes to this bug.
Description
•