New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: