issue 2316

This commit is contained in:
Jean-Louis GUENEGO 2017-09-23 13:04:48 +02:00
parent 3aabf88c0b
commit 9e301d40cf
2 changed files with 2 additions and 5 deletions

View File

@ -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));
}, },

View File

@ -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}
} }
} }