wasm-bindgen/crates/cli/tests/reference/anyref-import-catch.rs
Alex Crichton 996e92f3ae
Mass rename anyref to externref (#2142)
Updates a mess of dependencies and tracks the most recent version of the
reference types specification.
2020-05-18 09:36:30 -05:00

15 lines
219 B
Rust

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