mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-05 19:53:55 +03:00
Fix missing wasm_bindgen attribute (#2773)
This commit is contained in:
parent
3701c9d6be
commit
3e507e649c
@ -17,6 +17,7 @@ pub struct Foo {
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl Foo {
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new(val: i32) -> Foo {
|
||||
Foo { internal: val }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user