Fix missing wasm_bindgen attribute (#2773)

This commit is contained in:
Abi Raja 2022-01-19 12:26:31 -05:00 committed by GitHub
parent 3701c9d6be
commit 3e507e649c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ pub struct Foo {
#[wasm_bindgen]
impl Foo {
#[wasm_bindgen(constructor)]
pub fn new(val: i32) -> Foo {
Foo { internal: val }
}