-
Notifications
You must be signed in to change notification settings - Fork 34
Iterator.prototype.constructor #60
Comments
Theoretically, it could be a breaking change since could affect some old code: [].values().constructor; // => Object but unlikely that someone used it. |
Can you give some examples of why it would be useful to do this? |
Because |
JS objects contain |
@ljharb |
OrdinaryHasInstance of |
Okay so is there any tangible benefit to making this change? Is it just for consistency? |
@michaelficarra since we must respect the concepts that are already used in the language? |
Consistency is a tangible benefit. (yes, |
@ljharb |
Now it's
Object
, maybe it should beIterator
?The text was updated successfully, but these errors were encountered: