[Bug 28798] New: Indicate BufferSource algorithms can throw

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