You can set flags by calling `V8::SetFlagsFromString` before `V8::Initialize`.
On Tue, Jun 3, 2025 at 1:36 PM Jeroen Ooms <[email protected]> wrote: > On Tue, Jun 3, 2025 at 12:46 PM Jeroen Ooms <[email protected]> wrote: > > > > 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 > > Or alternatively, is there a flag I can pass to GN or ninja when > building v8 to enable this feature by default? > > -- > -- > v8-dev mailing list > [email protected] > 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 [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/v8-dev/CABFfbXuWfwTn-bdhUHU8BAgzwCw51_dPzpzg9c4W2FrxTU2y1A%40mail.gmail.com > . > -- Clemens Backes Software Engineer [email protected] 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. -- -- v8-dev mailing list [email protected] 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/v8-dev/CAGO%3DqhAWp2k-tgmRSXC8FneO_-17P7YZ%2Bz%2BDEowPn6k6QO%3DcEw%40mail.gmail.com.
