What is the API equivalent of --experimental-wasm-reftypes

55 views
Skip to first unread message

Jeroen Ooms

unread,
Jun 3, 2025, 6:46:37 AMJun 3
to v8-dev
I am trying to backport a wasm tool to a legacy platform which has v8 version 9.1.269.38. On this platform, loading the wasm fails with an error: 

CompileError: WebAssembly.Module(): invalid value type 'externref', enable with --experimental-wasm-reftypes @+54

This looks like a command line flag for node/d8? How do I enable this feature using the C++ API? My bindings are here: https://github.com/jeroen/V8/blob/master/src/bindings.cpp



Jeroen Ooms

unread,
Jun 3, 2025, 7:35:59 AMJun 3
to v8-...@googlegroups.com
Or alternatively, is there a flag I can pass to GN or ninja when
building v8 to enable this feature by default?

Clemens Backes

unread,
Jun 3, 2025, 7:43:08 AMJun 3
to v8-...@googlegroups.com
You can set flags by calling `V8::SetFlagsFromString` before `V8::Initialize`.

--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/v8-dev/CABFfbXuWfwTn-bdhUHU8BAgzwCw51_dPzpzg9c4W2FrxTU2y1A%40mail.gmail.com.


--

Clemens Backes

Software Engineer

clem...@google.com

Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Liana Sebastian   

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.


This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.


Reply all
Reply to author
Forward
0 new messages