-
Notifications
You must be signed in to change notification settings - Fork 64
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
"Convert a value to a key" should return invalid for detached array buffers #440
"Convert a value to a key" should return invalid for detached array buffers #440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more things:
- Add yourself to the Acknowledgements section
- Add an entry to the Revision History section
index.bs
Outdated
@@ -6366,9 +6366,11 @@ steps may throw an exception. | |||
<!-- Binary --> | |||
: If |input| is a [=buffer source type=] | |||
:: | |||
1. If [$IsDetachedBuffer$](|input|) is true then return invalid. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsDetachedBuffer() takes an ArrayBuffer or a SharedArrayBuffer, but buffer source type includes the views. I think you'll need to dig the buffer out of the view in those cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! I got the new steps from the WebIDL spec here:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the latest revision to use the shorthand for these steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. This all seemed very familiar... whatwg/webidl#1420 ... apparently we needed something similar over in WebNN. :)
…d acknowledgements.
Thanks @SteveBeckerMSFT ! |
Closes #417 by updating "7.4 Convert a value to a key" to return invalid when the
input
buffer source is detached.The following tasks have been completed:
Implementation commitment:
Preview | Diff