Skip to content

Commit

Permalink
Give SharedArrayBuffer a dedicated type
Browse files Browse the repository at this point in the history
Generally IDL objects have been 1:1 with ECMAScript objects, except for
SharedArrayBuffer. That was instead represented as
[AllowShared] ArrayBuffer, although that includes ArrayBuffer as well.
This created a number of challenges, e.g., how to return a
SharedArrayBuffer object.

So we make these changes here that will also require corresponding
downstream fixes:

* SharedArrayBuffer is now its own type.
* [AllowShared] only applies to buffer view types.
* AllowSharedBufferSource takes over from [AllowShared] BufferSource.

Fixes #865 and fixes #961.
  • Loading branch information
annevk committed May 30, 2023
1 parent 5dcedce commit 273bedf
Showing 1 changed file with 151 additions and 72 deletions.
Loading

0 comments on commit 273bedf

Please sign in to comment.