package wasmruntime
Import Path
github.com/tetratelabs/wazero/internal/wasmruntime (on go.dev)
Dependency Relation
imports 0 packages, and imported by 4 packages
Involved Source Files
Package wasmruntime contains internal symbols shared between modules for error handling.
Note: This is named wasmruntime to avoid conflicts with the normal go module.
Note: This only imports "api" as importing "wasm" would create a cyclic dependency.
Package-Level Type Names (only one)
Error is returned by a wasm.Engine during the execution of Wasm functions, and they indicate that the Wasm runtime
state is unrecoverable.
(*Error) Error() string
*Error : error
func New(text string) *Error
var ErrRuntimeExpectedSharedMemory *Error
var ErrRuntimeIndirectCallTypeMismatch *Error
var ErrRuntimeIntegerDivideByZero *Error
var ErrRuntimeIntegerOverflow *Error
var ErrRuntimeInvalidConversionToInteger *Error
var ErrRuntimeInvalidTableAccess *Error
var ErrRuntimeOutOfBoundsMemoryAccess *Error
var ErrRuntimeStackOverflow *Error
var ErrRuntimeTooManyWaiters *Error
var ErrRuntimeUnalignedAtomic *Error
var ErrRuntimeUnreachable *Error
Package-Level Variables (total 11)
ErrRuntimeIndirectCallTypeMismatch indicates that the type check failed during call_indirect.
ErrRuntimeIntegerDivideByZero indicates that an integer div or rem instructions
was executed with 0 as the divisor.
ErrRuntimeIntegerOverflow indicates that an integer arithmetic resulted in
overflow value. For example, when the program tried to truncate a float value
which doesn't fit in the range of target integer.
ErrRuntimeInvalidConversionToInteger indicates the Wasm function tries to
convert NaN floating point value to integers during trunc variant instructions.
ErrRuntimeInvalidTableAccess means either offset to the table was out of bounds of table, or
the target element in the table was uninitialized during call_indirect instruction.
ErrRuntimeOutOfBoundsMemoryAccess indicates that the program tried to access the
region beyond the linear memory.
ErrRuntimeStackOverflow indicates that there are too many function calls,
and the Engine terminated the execution.
ErrRuntimeTooManyWaiters indicates that atomic.wait was called with too many waiters.
ErrRuntimeUnalignedAtomic indicates that an atomic operation was made with incorrect memory alignment.
ErrRuntimeUnreachable means "unreachable" instruction was executed by the program.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |