Register the Perspective engine ("server") WebAssembly binary that backs
worker().
The single-argument form registers one binary of either bitness. The
object form registers a wasm32 and/or wasm64 (Memory64) binary; the wasm64
binary is preferred whenever the host supports Memory64, raising the
engine's heap ceiling from 4GB to 16GB (at some engine performance cost —
register only wasm32 to opt out). Sources registered as thunks are only
invoked if selected, so the losing binary is never downloaded; if the
selected wasm64 source fails to load and a wasm32 source is also
registered, selection falls back to wasm32 with a console warning.
Selection and download are deferred to the first worker() call.
Register the Perspective engine ("server") WebAssembly binary that backs
worker().The single-argument form registers one binary of either bitness. The object form registers a wasm32 and/or wasm64 (Memory64) binary; the wasm64 binary is preferred whenever the host supports Memory64, raising the engine's heap ceiling from 4GB to 16GB (at some engine performance cost — register only
wasm32to opt out). Sources registered as thunks are only invoked if selected, so the losing binary is never downloaded; if the selected wasm64 source fails to load and a wasm32 source is also registered, selection falls back to wasm32 with a console warning.Selection and download are deferred to the first
worker()call.Examples