@@ -240,12 +240,8 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) {
|
||||
}
|
||||
// ensure compression works if `const` reuses a scope variable
|
||||
if (node instanceof AST_SymbolConst) {
|
||||
var def = node.definition();
|
||||
var redef = def.redefined();
|
||||
if (redef) {
|
||||
if (!redef.const_redefs) redef.const_redefs = [];
|
||||
redef.const_redefs.push(def);
|
||||
}
|
||||
var redef = node.definition().redefined();
|
||||
if (redef) redef.const_redefs = true;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user