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

tobie approved this pull request.

LGTM.

> @@ -7945,6 +7966,38 @@ This section defines a number of
 whose presence affects only the ECMAScript binding.
 
 
+<h4 id="AllowShared" extended-attribute lt="AllowShared">[AllowShared]</h4>
+
+If the [{{AllowShared}}] [=extended attribute=] appears on one of the [=buffer source types=], it
+creates a new IDL type that allows the buffer source type to be backed by an ECMAScript
+{{ECMAScript/SharedArrayBuffer}}, instead of only by a non-shared {{ECMAScript/ArrayBuffer}}.
+
+The [{{AllowShared}}] extended attribute must [=takes no arguments|take no arguments=].
+
+A type that is not a [=buffer source type=] must not be
+[=extended attributes associated with|associated with=] the [{{AllowShared}}] extended attribute.
+
+See the rules for converting ECMAScript values to IDL [=buffer source types=] in

I admit I had to look "entails" up. Maybe instead write:

> […] for the specific requirements that using [{{AllowShared}}] creates.


-- 
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#pullrequestreview-35731875

Received on Tuesday, 2 May 2017 09:33:23 UTC