Skip to content

Add an alternative to Result<T, JsValue> for the wasm32-wasi target #2414

Closed
@tonyhb

Description

@tonyhb

When returning Result type we must use JsValue as the type to hold error cases. JsValue isn't supported on the wasm32-wasi target, if attempting to build for cranelift (eg. for use with wasmtime).

It would be nice to have use a supported interface type for the error value that works in both wasm32-unknown-unknown and wasm32-wasi targets.

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