The current definition of [AllowShared] BufferSource probably excludes SharedArrayBuffer (though IIRC it's ambiguous, see #4042).
We should do something to make SharedArrayBuffer explicitly allowed, e.g. use SharedArrayBuffer or [AllowShared] BufferSource like here: whatwg/webidl#961 (comment)
Currently, the workaround for this is to simply wrap the SharedArrayBuffer in a Uint8Array: new Uint8Array(mySAB)