-
Notifications
You must be signed in to change notification settings - Fork 385
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
Array.from
should not touch Array.prototype setters (createDataPropertyOrThrow)
#415
Comments
Array.from
should not touch Array.from
should not touch Array.prototype setters
Array.from
should not touch Array.prototype settersArray.from
should not touch Array.prototype setters (createDataPropertyOrThrow)
Ah... this was fixed in https://github.com/mathiasbynens/Array.from ... sorry |
Hmm, there's no fix for this in https://github.com/mathiasbynens/Array.from or this repo at all? However, according to https://tc39.github.io/ecma262/#sec-array.from step 12.b., it seems like it should indeed throw in this case. |
What about step 12.e ? |
Ah, you're correct that step 12e is what applies here - but the |
OK |
@ljharb The setter will not be touched with |
Good call, you're totally correct. Thanks for clarifying. |
An edge case...
The text was updated successfully, but these errors were encountered: