simplify conditions

This commit is contained in:
alexlamsl 2017-03-30 18:10:58 +08:00
parent 7de03480d5
commit 336a034404

View File

@ -79,9 +79,7 @@ SymbolDef.prototype = {
if (!options.screw_ie8 && sym instanceof AST_SymbolLambda)
s = s.parent_scope;
var def;
if (options.screw_ie8
&& sym instanceof AST_SymbolCatch
&& (def = this.defun.variables.get(this.name))) {
if (this.defun && (def = this.defun.variables.get(this.name))) {
this.mangled_name = def.mangled_name || def.name;
} else
this.mangled_name = s.next_mangled(options, this);