mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Updates a mess of dependencies and tracks the most recent version of the reference types specification.
15 lines
219 B
Rust
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()
|
|
}
|