Function: newVariant()
February 16, 2026 ยท View on GitHub
quickjs-emscripten / quickjs-emscripten-core / newVariant
Function: newVariant()
newVariant<
T>(baseVariant,options):T
Defined in: packages/quickjs-emscripten-core/src/from-variant.ts:162
Create a new variant by overriding how Emscripten obtains the WebAssembly module. This may be necessary in Cloudflare Workers, which can't compile WebAssembly modules from binary data.
Contents
Type Parameters
T
T extends QuickJSVariant
Parameters
baseVariant
T
options
Returns
T