[heycam/webidl] Add [AllowShared] to allow accepting SharedArrayBuffers (#353)

Previous to this commit, any API that accepted any of the buffer source types would also accept a SharedArrayBuffer. This was not the approach we want; instead, we want APIs to explicitly opt-in. Enabled by previous work creating annotated types, this adds the new [AllowShared] extended attribute to allow APIs to opt in to accepting SharedArrayBuffers.

While here, this removes an unimplemented check for detached array buffers when converting from ES values to IDL types, fixing #352.
You can view, comment on, or merge this pull request online at:

  https://github.com/heycam/webidl/pull/353

-- Commit Summary --

  * Add [AllowShared] to allow accepting SharedArrayBuffers

-- File Changes --

    M index.bs (71)

-- Patch Links --

https://github.com/heycam/webidl/pull/353.patch
https://github.com/heycam/webidl/pull/353.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/353

Received on Friday, 28 April 2017 22:12:01 UTC