-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Handle exceptions from DetachArrayBuffer #4603
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
Conversation
Can you add a note, or even better an example, explaining when this might throw? I know you can click through to DetachArrayBuffer and find out it has something to do with [[ArrayBufferDetachKey]], but I think it's pretty opaque. |
Chrome implementation bug: https://bugs.chromium.org/p/chromium/issues/detail?id=961059 |
So, does anyone call https://heycam.github.io/webidl/#dfn-detach? |
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.
See #4601 (comment) for specification cross-references to understand this fix.
In particular, DetachArrayBuffer() can throw for the ArrayBuffer used as the backing memory in the WebAssembly JS API. This matches the current behavior in Firefox and Safari. Fixes #4601.
Added a note |
…y ArrayBuffer, a=testonly Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746
…y ArrayBuffer, a=testonly Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746
…y ArrayBuffer, a=testonly Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746 UltraBlame original commit: e261df73282723d85a2e7dc366f73a11cd8ac6c5
…y ArrayBuffer, a=testonly Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746 UltraBlame original commit: e261df73282723d85a2e7dc366f73a11cd8ac6c5
…y ArrayBuffer, a=testonly Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746 UltraBlame original commit: e261df73282723d85a2e7dc366f73a11cd8ac6c5
…y ArrayBuffer, a=testonly Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746
In particular, DetachArrayBuffer() can throw for the ArrayBuffer used as the
backing memory in the WebAssembly JS API.
This matches the current behavior in Firefox and Safari.
Fixes #4601.
(See WHATWG Working Mode: Changes for more details.)
/references.html ( diff )
/structured-data.html ( diff )