Skip to content

SharedArrayBuffer Not Defined in Certain Browsers #3419

Closed as not planned
Closed as not planned
@yashodipmore

Description

@yashodipmore

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

Actual Behavior:
When running the p5.js web editor in certain browsers (e.g., Firefox and some versions of Chrome), SharedArrayBuffer is undefined. This causes errors when attempting to use WebAssembly or other related features in p5.js.

Error Message:

Uncaught ReferenceError: SharedArrayBuffer is not defined

Expected Behavior

The SharedArrayBuffer API should be accessible in supported browsers.

The web editor should either handle this gracefully or provide a fallback mechanism.

Steps to reproduce

Open the p5.js Web Editor in Firefox or an affected version of Chrome.

Run a sketch that uses WebAssembly or SharedArrayBuffer.

Observe the error in the developer console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions