update tests
This commit is contained in:
@@ -2226,10 +2226,11 @@ unused_orig: {
|
|||||||
expect: {
|
expect: {
|
||||||
var a = 1;
|
var a = 1;
|
||||||
console.log(function(b) {
|
console.log(function(b) {
|
||||||
var a;
|
|
||||||
var c = b;
|
var c = b;
|
||||||
for (var d in c)
|
for (var d in c) {
|
||||||
|
var a;
|
||||||
return --b + (a = c[0]);
|
return --b + (a = c[0]);
|
||||||
|
}
|
||||||
a && a.NaN;
|
a && a.NaN;
|
||||||
}([2]), a);
|
}([2]), a);
|
||||||
}
|
}
|
||||||
@@ -2576,7 +2577,9 @@ issue_2250_1: {
|
|||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
conditionals: true,
|
conditionals: true,
|
||||||
|
passes: 2,
|
||||||
reduce_vars: true,
|
reduce_vars: true,
|
||||||
|
unused: true,
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
function f(x) {
|
function f(x) {
|
||||||
@@ -2618,6 +2621,7 @@ issue_2250_2: {
|
|||||||
reduce_vars: true,
|
reduce_vars: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
toplevel: true,
|
toplevel: true,
|
||||||
|
unused: true,
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ export_mangle_2: {
|
|||||||
export_mangle_3: {
|
export_mangle_3: {
|
||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
|
unused: true,
|
||||||
}
|
}
|
||||||
mangle = {
|
mangle = {
|
||||||
toplevel: true,
|
toplevel: true,
|
||||||
@@ -195,6 +196,7 @@ export_mangle_3: {
|
|||||||
export_mangle_4: {
|
export_mangle_4: {
|
||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
|
unused: true,
|
||||||
}
|
}
|
||||||
mangle = {
|
mangle = {
|
||||||
toplevel: true,
|
toplevel: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user