Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeModule ¶
func DecodeModule(source []byte, enabledFeatures wasm.Features, memoryMaxPages uint32) (result *wasm.Module, err error)
DecodeModule implements wasm.DecodeModule for the WebAssembly 1.0 (20191205) Text Format See https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#text-format%E2%91%A0
Types ¶
type FormatError ¶
type FormatError struct { // Line is the source line number determined by unescaped '\n' characters of the error or EOF Line uint32 // Col is the UTF-8 column number of the error or EOF Col uint32 // Context is where symbolically the error occurred. Ex "imports[1].func" Context string // contains filtered or unexported fields }
FormatError allows control over the format of errors parsing the WebAssembly Text Format.
func (*FormatError) Error ¶
func (e *FormatError) Error() string
func (*FormatError) Unwrap ¶
func (e *FormatError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.