Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 2.73 KB

File metadata and controls

40 lines (25 loc) · 2.73 KB

quickjs-emscripten@jitl/quickjs-singlefile-browser-release-asyncifyReadme | Exports


quickjs-emscripten / @jitl/quickjs-singlefile-browser-release-asyncify

@jitl/quickjs-singlefile-browser-release-asyncify

Contents

Variables

default

const default: QuickJSAsyncVariant

@jitl/quickjs-singlefile-browser-release-asyncify

Docs | Variant with the WASM data embedded into a browser ESModule.

Variable Setting Description
library quickjs The original bellard/quickjs library. Version 2024-02-14+36911f0d vendored to quickjs-emscripten on 2024-06-15.
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 singlefile The WASM runtime is included directly in the JS file. Use if you run into issues with missing .wasm files when building or deploying your app.
exports browser Has these package.json export conditions

Source

index.ts:18


Generated using typedoc-plugin-markdown and TypeDoc