Skip to content

Cannot return Tsify types from async methods with wasm-bindgen-futures #53

@hoxxep

Description

@hoxxep

The crate tests are failing as per below in many cases on the js feature which means we cannot return rust types in methods and have them automatically cast to JS objects.

-        impl From<JsType> for JsValue {
-            #[inline]
-            fn from(obj: JsType) -> JsValue {
-                obj.obj.into()
-            }
-        }
-        impl JsCast for JsType {
-        ...
-        }

This is broken on both the tests on master (as per ./test.sh) and per the deployed crate.

Let me know if you're aware of a quick fix, or can point me to a likely culprit? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions