issue 2316
This commit is contained in:
parent
3aabf88c0b
commit
9e301d40cf
|
|
@ -61,7 +61,7 @@ SymbolDef.next_id = 1;
|
|||
SymbolDef.prototype = {
|
||||
unmangleable: function(options) {
|
||||
if (!options) options = {};
|
||||
|
||||
|
||||
return (this.global && !options.toplevel)
|
||||
|| this.export
|
||||
|| this.undeclared
|
||||
|
|
@ -71,9 +71,6 @@ SymbolDef.prototype = {
|
|||
|| this.orig[0] instanceof AST_SymbolDefun))
|
||||
|| this.orig[0] instanceof AST_SymbolMethod
|
||||
|| (options.keep_classnames
|
||||
&& (this.orig[0] instanceof AST_SymbolClass
|
||||
|| this.orig[0] instanceof AST_SymbolDefClass))
|
||||
|| (options.reserved && options.reserved.indexOf(this.name) >= 0
|
||||
&& (this.orig[0] instanceof AST_SymbolClass
|
||||
|| this.orig[0] instanceof AST_SymbolDefClass));
|
||||
},
|
||||
|
|
|
|||
|
|
@ -819,6 +819,6 @@ class_name_can_be_preserved_with_reserved: {
|
|||
}
|
||||
}
|
||||
expect: {
|
||||
function x(){class Foo{}Foo.bar;class o{}o.foo}
|
||||
function x(){class Foo{}Foo.bar;class s{}s.foo}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user