Destructuring parameters with defaults. function x({ foo, bar } = {}) { }

This commit is contained in:
Fábio Santos
2015-11-22 18:02:35 +00:00
committed by Richard van Velzen
parent 084437bc6d
commit 5b553aafe2
3 changed files with 15 additions and 10 deletions

View File

@@ -639,6 +639,12 @@ function OutputStream(options) {
name.print(output);
})
output.print(self.is_array ? "]" : "}");
if (self.default) {
output.space();
output.print('=');
output.space();
self.default.print(output)
}
})
DEFPRINT(AST_Debugger, function(self, output){