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

See also #342 and #865.

My current thinking on this:

* SharedArrayBuffer should be its own IDL type. We should not overload the ArrayBuffer IDL type to being able to represent ArrayBuffer and SharedArrayBuffer JS types.
* [AllowShared] only applies to ArrayBufferView types.
* We should leave BufferSource as-is.
* We should add SharedBufferSource that also accepts SharedArrayBuffer and that uses [AllowShared] in front of ArrayBufferView.

The outcome of that might well be that [AllowShared] BufferSource is valid as [AllowShared] would end up ignored for ArrayBuffer. I don't have strong feelings about that.

-- 
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/issues/961#issuecomment-790405115

Received on Thursday, 4 March 2021 07:54:15 UTC