@@ -1761,6 +1761,11 @@ Compressor.prototype.compress = function(node) {
|
||||
|
||||
var identifier_atom = makePredicate("Infinity NaN undefined");
|
||||
function is_lhs_read_only(lhs, compressor) {
|
||||
if (lhs instanceof AST_Assign) {
|
||||
if (lhs.operator != "=") return true;
|
||||
if (lhs.right.tail_node().is_constant()) return true;
|
||||
return is_lhs_read_only(lhs.left, compressor);
|
||||
}
|
||||
if (lhs instanceof AST_Atom) return true;
|
||||
if (lhs instanceof AST_ObjectIdentity) return true;
|
||||
if (lhs instanceof AST_PropAccess) {
|
||||
|
||||
Reference in New Issue
Block a user