W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2015

[Bug 28798] New: Indicate BufferSource algorithms can throw

From: <bugzilla@jessica.w3.org>
Date: Thu, 11 Jun 2015 17:57:20 +0000
To: public-script-coord@w3.org
Message-ID: <bug-28798-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28798

            Bug ID: 28798
           Summary: Indicate BufferSource algorithms can throw
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: annevk@annevk.nl
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

http://heycam.github.io/webidl/#idl-buffer-source-types

[[
 get a reference to the bytes held by the buffer source or get a copy of the
bytes held by the buffer source
]]

These algorithms can throw.

It seems for ArrayBuffer the binding layer would have thrown, but this is not
the case for e.g. Uint8Array. We might want to make that consistent though and
let the binding layer handle all the exceptional cases. I doubt any
specification writer is taking this into account.

(I would also somewhat prefer it if the "pointer vs copy" decision was a
syntax-decision too. That way it is much easier to detect whether a
specification is considering this and whether it is doing the right thing.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 11 June 2015 17:57:22 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 11 June 2015 17:57:22 UTC