W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2016

[Bug 28798] Indicate BufferSource algorithms can throw

From: <bugzilla@jessica.w3.org>
Date: Thu, 28 Jan 2016 01:02:55 +0000
To: public-script-coord@w3.org
Message-ID: <bug-28798-3890-exLlTbOJYt@http.www.w3.org/Bugs/Public/>
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 on the CC list for the bug.
Received on Thursday, 28 January 2016 01:02:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC