Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSPI Wasm module instantiation fails... #22898

Open
Honya2000 opened this issue Nov 9, 2024 · 1 comment
Open

JSPI Wasm module instantiation fails... #22898

Honya2000 opened this issue Nov 9, 2024 · 1 comment

Comments

@Honya2000
Copy link

Hello,

I'm trying to integrate JSPI to my wasm project.
But when i'm trying to instantiate compiled wasm module it throws error:
Exception: TypeError: WebAssembly.Suspending is not a constructor.

According to this:
https://v8.dev/blog/jspi-newapi

It should be supported in chrome starting from version 126.
I'm currently using windows chrome: Version 130.0.6723.117

So why new API is not available there?

Tried to google the issue. Didn't find the answers...

@kripken
Copy link
Member

kripken commented Nov 11, 2024

You need to enable a flag, as it is not on by default, see

https://webassembly.org/features/#feature-note-3

edit: from the link, chrome://flags/#enable-experimental-webassembly-jspi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants