mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
fix deno import logic to include non-placeholder-module imports
This commit is contained in:
@ -26,6 +26,10 @@ extern "C" {
|
||||
extern "C" {
|
||||
fn add(a: u32, b: u32) -> u32;
|
||||
}
|
||||
#[wasm_bindgen(inline_js = "export function test() {}")]
|
||||
extern "C" {
|
||||
fn test();
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn greet(name: String) {
|
||||
@ -33,5 +37,6 @@ pub fn greet(name: String) {
|
||||
|
||||
let x = MyClass::new();
|
||||
assert_eq!(x.number(), add(40, 2));
|
||||
test();
|
||||
log(&x.render());
|
||||
}
|
||||
|
Reference in New Issue
Block a user