@@ -1866,7 +1866,7 @@ merge(Compressor.prototype, {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return;
|
return handle_custom_scan_order(node, multi_replacer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace variable when found
|
// Replace variable when found
|
||||||
|
|||||||
@@ -8897,3 +8897,38 @@ issue_4806: {
|
|||||||
}
|
}
|
||||||
expect_stdout: "PASS"
|
expect_stdout: "PASS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_4852: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a = "PASS";
|
||||||
|
(function(b) {
|
||||||
|
switch (b = a) {
|
||||||
|
case 42:
|
||||||
|
try {
|
||||||
|
console;
|
||||||
|
} catch (b) {
|
||||||
|
b.p;
|
||||||
|
}
|
||||||
|
case console.log(b):
|
||||||
|
}
|
||||||
|
})("FAIL");
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a = "PASS";
|
||||||
|
(function(b) {
|
||||||
|
switch (a) {
|
||||||
|
case 42:
|
||||||
|
try {
|
||||||
|
console;
|
||||||
|
} catch (b) {
|
||||||
|
b.p;
|
||||||
|
}
|
||||||
|
case console.log(a):
|
||||||
|
}
|
||||||
|
})("FAIL");
|
||||||
|
}
|
||||||
|
expect_stdout: "PASS"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user