Merge pull request #1483 from dbrgn/typescript-optional-args

Fix optional arguments in TypeScript
This commit is contained in:
Alex Crichton
2019-05-14 12:39:35 -05:00
committed by GitHub
4 changed files with 74 additions and 27 deletions

View File

@ -3024,7 +3024,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
};