-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Is IntegerIndexedElementSet returning false
for OOB access web-compatible?
#2208
Comments
No, it's not web-compatible. I've modified Firefox to throw on OOB access (or more precisely to throw when Edit: https://godbolt.org/ is also affected. |
Thanks for the investigation, @anba! If so, then I think we need to align the spec with the foregoing behavior for V8 and SM—namely, we need to have IntegerIndexedElementSet early out with |
Er, hmm. The |
The SpiderMonkey behaviour for |
Please consider the following code:
Step 6 of
IntegerIndexedElementSet
returnsfalse
for out-of-bounds indices, whichSet
should throw aTypeError
for.However, none of the tested runtimes (V8, SM, JSC) throws.
If throwing isn't web-compatible, should
true
be returned instead to maintain strict-mode assignment semantics?Note: this issue wasn't affected by / isn't related to recent detached buffers change.
cc @rkirsling @syg
The text was updated successfully, but these errors were encountered: