@@ -1597,7 +1597,6 @@ function OutputStream(options) {
|
|||||||
if (self.is_generator) {
|
if (self.is_generator) {
|
||||||
output.print("*");
|
output.print("*");
|
||||||
}
|
}
|
||||||
output.space();
|
|
||||||
if (self.key instanceof AST_SymbolMethod) {
|
if (self.key instanceof AST_SymbolMethod) {
|
||||||
self.print_property_name(self.key.name, self.quote, output);
|
self.print_property_name(self.key.name, self.quote, output);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -370,3 +370,25 @@ issue_1613: {
|
|||||||
}
|
}
|
||||||
expect_exact: "const n=1;const c={name:n};"
|
expect_exact: "const n=1;const c={name:n};"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
format_methods: {
|
||||||
|
beautify = {
|
||||||
|
beautify: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
class A extends B {constructor(a){x()} static s(b,c){y()} run(d,e,f){z()}}
|
||||||
|
}
|
||||||
|
expect_exact: [
|
||||||
|
"class A extends B {",
|
||||||
|
" constructor(a) {",
|
||||||
|
" x();",
|
||||||
|
" }",
|
||||||
|
" static s(b, c) {",
|
||||||
|
" y();",
|
||||||
|
" }",
|
||||||
|
" run(d, e, f) {",
|
||||||
|
" z();",
|
||||||
|
" }",
|
||||||
|
"}",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user