fix crash in unsafe replacement of undefined
remove extraneous call to AST_SymbolRef.reference() closes #1443
This commit is contained in:
@@ -2721,13 +2721,11 @@ merge(Compressor.prototype, {
|
||||
var scope = compressor.find_parent(AST_Scope);
|
||||
var undef = scope.find_variable("undefined");
|
||||
if (undef) {
|
||||
var ref = make_node(AST_SymbolRef, self, {
|
||||
return make_node(AST_SymbolRef, self, {
|
||||
name : "undefined",
|
||||
scope : scope,
|
||||
thedef : undef
|
||||
});
|
||||
ref.reference();
|
||||
return ref;
|
||||
}
|
||||
}
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user