Skip to content

Define custom abort function in the module? #388

@kyegupov

Description

@kyegupov

I need to create wasm modules that would adapt to some rigid environment (i.e. the set of things I can import is known and fixed). I'd like to use exceptions (idiomatic!), but they are implemented via an abort() hook currently.

It seems (

// register 'abort' if present
) I should be able to implement my custom abort at the AS side, but so far I have failed (@global export function abort doesn't seem to do the trick).

Is there a way? Am I missing something? This should be documented in the Wiki, probably.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions