Destructuring parameters with defaults. function x({ foo, bar } = {}) { }
This commit is contained in:
committed by
Richard van Velzen
parent
084437bc6d
commit
5b553aafe2
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user