这是indexloc提供的服务,不要输入任何密码
Skip to content

writeBuffer/writeTexture works with shared ArrayBufferViews but not SharedArrayBuffer #4186

@kainino0x

Description

@kainino0x

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    copyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions