mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-08 12:02:17 +00:00
This commit tweaks the codegen for imported functions and such (anything that relies on some imported intrinsic or function filled in by the CLI) to share as much code as possible on non-wasm32 platforms. This should help us catch more errors before compiling to wasm and also just make it easier to write UI tests! For example a UI test previously couldn't be written for #1528 but now it can be, and one is include (although the error message is quite bad).
8 lines
449 B
Plaintext
8 lines
449 B
Plaintext
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::convert::traits::FromWasmAbi` is not satisfied
|
|
--> $DIR/missing-catch.rs:3:1
|
|
|
|
|
3 | #[wasm_bindgen]
|
|
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::convert::traits::FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|