mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 22:11:23 +00:00
Fix optional arguments in TypeScript
This commit is contained in:
@ -2963,7 +2963,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
"\n {}{}: {};",
|
||||
if field.readonly { "readonly " } else { "" },
|
||||
field.name,
|
||||
&cx.js_arguments[0].1
|
||||
&cx.js_arguments[0].type_
|
||||
));
|
||||
cx.finish("", &format!("wasm.{}", wasm_setter), setter).0
|
||||
};
|
||||
|
Reference in New Issue
Block a user