You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasm-bindgen has a flag --reference-types that can be used to generate a WebAssembly module that uses post-MVP type externref, however currently there is no way that I'm aware of to enable that flag when using wasm-pack. It would be nice if I could do something like wasm-pack build --reference-types to enable that.
The text was updated successfully, but these errors were encountered:
The Reference Types proposal, shipped in V8 v9.6, allows using external references from JavaScript opaquely in WebAssembly modules. The externref (formerly known as anyref) data type provides a secure way of holding a reference to a JavaScript object and is fully integrated with V8's garbage collector.
Few toolchains that already have optional support for reference types are wasm-bindgen for Rust and AssemblyScript.
💡 Feature description
wasm-bindgen
has a flag--reference-types
that can be used to generate a WebAssembly module that uses post-MVP typeexternref
, however currently there is no way that I'm aware of to enable that flag when usingwasm-pack
. It would be nice if I could do something likewasm-pack build --reference-types
to enable that.The text was updated successfully, but these errors were encountered: