Documentation
¶
Overview ¶
Package validate provides functions for validating WebAssembly modules
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrStackUnderflow define the error message
Functions ¶
Types ¶
type Error ¶
type Error struct {
Offset int // Byte offset in the bytecode vector where the error occurs.
Function int // Index into the function index space for the offending function.
Err error
}
Error define the error struct
type InvalidElementIndexError ¶
type InvalidElementIndexError uint32
InvalidElementIndexError define invalid element index error
type InvalidImmediateError ¶
InvalidImmediateError define invalid immediate error
func (InvalidImmediateError) Error ¶
func (e InvalidImmediateError) Error() string
Error define invalid immediate error message
type InvalidLabelError ¶
type InvalidLabelError uint32
InvalidLabelError define uint32 type
func (InvalidLabelError) Error ¶
func (e InvalidLabelError) Error() string
Error define invalid label error
type InvalidLocalIndexError ¶
type InvalidLocalIndexError uint32
InvalidLocalIndexError define uint32 type
func (InvalidLocalIndexError) Error ¶
func (e InvalidLocalIndexError) Error() string
Error define invalid local index error
type InvalidTypeError ¶
InvalidTypeError define invalid type error struct
func (InvalidTypeError) Error ¶
func (e InvalidTypeError) Error() string
Error define invalid type error
type NoSectionError ¶
NoSectionError define section id
type UnmatchedOpError ¶
type UnmatchedOpError byte
UnmatchedOpError define byte type
func (UnmatchedOpError) Error ¶
func (e UnmatchedOpError) Error() string
Error define unmathed operator error
Source Files
¶
- error.go
- operand.go
- validate.go
- vm.go
Click to show internal directories.
Click to hide internal directories.