Re: [whatwg/webidl] It is unclear if [AllowShared] BufferSource is valid (#961)

That makes sense, I guess for clarity `AllowSharedBufferSource` would be better, to indicate it's allowed, but not enforced.
 Defined as:
```webidl
typedef (SharedArrayBuffer or [AllowShared] BufferSource) AllowSharedBufferSource;
```
I think that works because `[AllowShared] ArrayBuffer` would end up ignored. Though we could flatten it a bit more if that would be preferred:
```webidl
typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource;
```
cc @Constellation

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/961#issuecomment-1537384391
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/961/1537384391@github.com>

Received on Sunday, 7 May 2023 10:49:38 UTC