Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 2.76 KB

File metadata and controls

40 lines (25 loc) · 2.76 KB

quickjs-emscripten@jitl/quickjs-ng-wasmfile-release-asyncifyReadme | Exports


quickjs-emscripten / @jitl/quickjs-ng-wasmfile-release-asyncify

@jitl/quickjs-ng-wasmfile-release-asyncify

Contents

Variables

default

const default: QuickJSAsyncVariant

@jitl/quickjs-ng-wasmfile-release-asyncify

Docs | Variant with separate .WASM file. Supports browser ESM, NodeJS ESM, and NodeJS CommonJS.

Variable Setting Description
library quickjs-ng quickjs-ng is a fork of quickjs that tends to add features more quickly. Version git+7ded62c5 vendored to quickjs-emscripten on 2024-02-12.
releaseMode release Optimized for performance; use when building/deploying your application.
syncMode asyncify Build run through the ASYNCIFY WebAssembly transform. This imposes substantial size (2x the size of sync) and speed penalties (40% the speed of sync). In return, allows synchronous calls from the QuickJS WASM runtime to async functions on the host. The extra magic makes this variant slower than sync variants. Note that both variants support regular async functions. Only adopt ASYNCIFY if you need to! The QuickJSAsyncRuntime and QuickJSAsyncContext classes expose the ASYNCIFY-specific APIs.
emscriptenInclusion wasm Has a separate .wasm file. May offer better caching in your browser, and reduces the size of your JS bundle. If you have issues, try a 'singlefile' variant.
exports require import browser workerd Has these package.json export conditions

Source

index.ts:18


Generated using typedoc-plugin-markdown and TypeDoc