polywrap_wasm.imports.abort module

This module contains abort family of imports for the Wasm module.

class polywrap_wasm.imports.abort.WrapAbortImports[source]

Bases: BaseWrapImports

Defines the abort family of imports for the Wasm module.

wrap_abort(msg_ptr: int, msg_len: int, file_ptr: int, file_len: int, line: int, column: int) None[source]

Abort the Wasm module and raise an exception.

Parameters:
  • msg_ptr (int) – The pointer to the message string in memory.

  • msg_len (int) – The length of the message string in memory.

  • file_ptr (int) – The pointer to the filename string in memory.

  • file_len (int) – The length of the filename string in memory.

  • line (int) – The line of the file at where the abort occured.

  • column (int) – The column of the file at where the abort occured.

Raises:

WasmAbortError – since the Wasm module aborted during invocation.