Function: newQuickJSWASMModuleFromVariant()
February 16, 2026 ยท View on GitHub
quickjs-emscripten / quickjs-emscripten-core / newQuickJSWASMModuleFromVariant
Function: newQuickJSWASMModuleFromVariant()
newQuickJSWASMModuleFromVariant(
variantOrPromise):Promise<QuickJSWASMModule>
Defined in: packages/quickjs-emscripten-core/src/from-variant.ts:38
Create a new, completely isolated WebAssembly module containing the QuickJS library. See the documentation on QuickJSWASMModule.
Note that there is a hard limit on the number of WebAssembly modules in older versions of v8: https://bugs.chromium.org/p/v8/issues/detail?id=12076
Contents
Parameters
variantOrPromise
PromisedDefault<QuickJSSyncVariant>
A QuickJSSyncVariant to construct the WebAssembly module.
Returns
Promise<QuickJSWASMModule>
Example
const quickjs = new newQuickJSWASMModuleFromVariant(
import('@jitl/quickjs-browser-release-sync-wasm')
)