Replies: 1 comment
-
See #2407, which would probably be needed for something like this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A wasm_bindgen function that in Rust returns a Result will generate a function that in JS unwraps the result, returning the Ok value and throwing the Err value. For example:
Exported definition in .d.ts:
What I want is not for the error to be thrown, but to simply return a Result object:
Is there a way to do this with wasm_bindgen?
Beta Was this translation helpful? Give feedback.
All reactions