load

abstract fun load(bytes: ByteArray): Op

Compile + instantiate bytes under the capability sandbox, returning a runnable Op whose invocations are bounded by the configured execution timeout.

Throws

if the module declares an import, violates the memory ceiling (over-cap initial or max, no explicit max, or no memory at all), is malformed, lacks the warp_alloc/warp_run ABI exports, or — on implementations that instantiate eagerly — its (start) function traps or exceeds the execution budget (see the load-phase execution bound above).