Skip to content

Fixed method signature of Atomics.waitAsync #51603

@Eyal-Shalev

Description

@Eyal-Shalev

lib Update Request

Missing / Incorrect Definition

Atomics.waitAsync is configured to only accept BigInt as the value, but according to MDN (and deno implementation) it accepts a number.

Sample Code

const sab = new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 1024);
const int32 = new Int32Array(sab);
Atomics.waitAsync(int32, 0, 0);

Documentation Link

MDN | Atomics.waitAsync()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions