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: Tue, 09 Feb 2016 22:50:24 +0000
To: public-script-coord@w3.org
Message-ID: <bug-28798-3890-n0eTtpMdcw@http.www.w3.org/Bugs/Public/>

--- Comment #8 from Domenic Denicola <d@domenic.me> ---
(In reply to Tab Atkins Jr. from comment #7)
> Similarly documenting: Font Loading's FontFace() constructor takes binary
> data, and would copy.
> These examples, and my own intuition, suggest that most functions with
> binary data arguments are *consuming* those arguments, not sharing them, and
> so we should default to copying (which is the safer default anyway) and
> require an annotation to indicate that a reference is being held.

The way you phrase this is interesting. I'd think that if something is
*consuming* its argument, it should instead transfer it (thus detaching the
argument). Then, it has been consumed.

I guess that's probably not what you meant, but regardless it seems unfortunate
that there's no easy way for FontFace() users to avoid the copy, even if they
never intend to use that binary data again.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 9 February 2016 22:50:26 UTC

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