beautify correction
This commit is contained in:
parent
7d3dcc0bbd
commit
1076fe1e6c
|
|
@ -546,10 +546,7 @@ AST_Toplevel.DEFMETHOD("mangle_names", function(options){
|
|||
var mangle_with_block_scope =
|
||||
(!options.ie8 && node instanceof AST_SymbolCatch) ||
|
||||
node instanceof AST_SymbolBlockDeclaration;
|
||||
if (options.reserved.indexOf(node.name) >= 0) {
|
||||
mangle_with_block_scope = false;
|
||||
}
|
||||
if (mangle_with_block_scope) {
|
||||
if (mangle_with_block_scope && options.reserved.indexOf(node.name) < 0) {
|
||||
to_mangle.push(node.definition());
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -819,6 +819,10 @@ class_name_can_be_preserved_with_reserved: {
|
|||
}
|
||||
}
|
||||
expect: {
|
||||
function x(){class Foo{}Foo.bar;class s{}s.foo}
|
||||
function x(){
|
||||
class Foo{}
|
||||
Foo.bar;
|
||||
class s{}s.foo
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user