issue 2316
This commit is contained in:
parent
3aabf88c0b
commit
9e301d40cf
|
|
@ -61,7 +61,7 @@ SymbolDef.next_id = 1;
|
||||||
SymbolDef.prototype = {
|
SymbolDef.prototype = {
|
||||||
unmangleable: function(options) {
|
unmangleable: function(options) {
|
||||||
if (!options) options = {};
|
if (!options) options = {};
|
||||||
|
|
||||||
return (this.global && !options.toplevel)
|
return (this.global && !options.toplevel)
|
||||||
|| this.export
|
|| this.export
|
||||||
|| this.undeclared
|
|| this.undeclared
|
||||||
|
|
@ -71,9 +71,6 @@ SymbolDef.prototype = {
|
||||||
|| this.orig[0] instanceof AST_SymbolDefun))
|
|| this.orig[0] instanceof AST_SymbolDefun))
|
||||||
|| this.orig[0] instanceof AST_SymbolMethod
|
|| this.orig[0] instanceof AST_SymbolMethod
|
||||||
|| (options.keep_classnames
|
|| (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_SymbolClass
|
||||||
|| this.orig[0] instanceof AST_SymbolDefClass));
|
|| this.orig[0] instanceof AST_SymbolDefClass));
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -819,6 +819,6 @@ class_name_can_be_preserved_with_reserved: {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
expect: {
|
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