1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-17 18:50:51 +00:00
Alex Crichton a02d210d5c Catch more errors on non-wasm32 platforms
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  but now
it can be, and one is include (although the error message is quite bad).
2019-05-20 10:16:25 -07:00

10 lines
136 B
Rust

use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen]
pub fn foo() -> Result<JsValue, JsValue>;
}
fn main() {}