[Bug 28798] Indicate BufferSource algorithms can throw

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28798

--- Comment #5 from Anne <annevk@annevk.nl> ---
The only thing in HTML that takes a BufferSource-like argument is WebSocket and
we'd copy there. (The other place they come up is structured clones which
requires custom logic.)

sendBeacon(), fetch(), and XMLHttpRequest would copy.

TextDecoder would copy.

Web Audio API has custom logic (it detaches the ArrayBuffer).

Haven't looked further, but it seems like the pattern is copy or custom logic.
Having something for copy in IDL would be great. In particular by letting the
input be a BufferSource, and the output an exception or a byte sequence.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 28 January 2016 01:02:58 UTC