a LabeledStatement should be in fact a StatementWithBody
This fixes output for:
if (foo) {
moo: if (bar) {
break moo;
}
} else {
baz();
}
(the labeled statement must be outputted inside brackets)
This commit is contained in:
@@ -457,7 +457,7 @@ function OutputStream(options) {
|
||||
DEFPRINT(AST_LabeledStatement, function(self, output){
|
||||
self.label.print(output);
|
||||
output.colon();
|
||||
self.statement.print(output);
|
||||
self.body.print(output);
|
||||
});
|
||||
DEFPRINT(AST_SimpleStatement, function(self, output){
|
||||
self.body.print(output);
|
||||
|
||||
Reference in New Issue
Block a user