@pumpkin-plugins/static-hermes-runtime API / hermes/toolchain-environment / selectWasmToolsAsset
Function: selectWasmToolsAsset()
selectWasmToolsAsset(
lock,target):WasmToolsAsset
Defined in: hermes/toolchain-environment.ts:681
Return the pinned wasm-tools archive and checksum for a supported platform.
Parameters
lock
WasmToolsLock
Release repository and per-platform archives from wasm-tools.lock.json.
target
Pinned release version, platform, and architecture.
arch
string
platform
Platform
version
string
Returns
WasmToolsAsset
Archive filename, HTTPS download URL, and lowercase SHA-256 digest.
Throws
If the lock does not pin assets for the version or has no binary for the platform/architecture pair.