aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r--test/compress/evaluate.js76
1 files changed, 40 insertions, 36 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 9d35ffa3..999a1ca5 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -186,7 +186,9 @@ unary_prefix: {
}
negative_zero: {
- options = { evaluate: true }
+ options = {
+ evaluate: true,
+ }
input: {
console.log(
-"",
@@ -207,7 +209,9 @@ negative_zero: {
}
positive_zero: {
- options = { evaluate: true }
+ options = {
+ evaluate: true,
+ }
input: {
console.log(
+"",
@@ -229,8 +233,8 @@ positive_zero: {
unsafe_constant: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -421,8 +425,8 @@ prop_function: {
unsafe_integer_key: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -449,8 +453,8 @@ unsafe_integer_key: {
unsafe_integer_key_complex: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -477,8 +481,8 @@ unsafe_integer_key_complex: {
unsafe_float_key: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -505,8 +509,8 @@ unsafe_float_key: {
unsafe_float_key_complex: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -533,8 +537,8 @@ unsafe_float_key_complex: {
unsafe_array: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -569,8 +573,8 @@ unsafe_array: {
unsafe_string: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -597,8 +601,8 @@ unsafe_string: {
unsafe_array_bad_index: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -619,8 +623,8 @@ unsafe_array_bad_index: {
unsafe_string_bad_index: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -754,8 +758,8 @@ in_boolean_context: {
unsafe_charAt: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -782,8 +786,8 @@ unsafe_charAt: {
unsafe_charAt_bad_index: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -804,8 +808,8 @@ unsafe_charAt_bad_index: {
unsafe_charAt_noop: {
options = {
- evaluate : true,
- unsafe : true
+ evaluate: true,
+ unsafe: true,
}
input: {
console.log(
@@ -1195,7 +1199,7 @@ issue_2231_1: {
}
expect_stdout: true
expect_warnings: [
- "WARN: Error evaluating Object.keys(void 0) [test/compress/evaluate.js:1191,20]",
+ "WARN: Error evaluating Object.keys(void 0) [test/compress/evaluate.js:1195,20]",
]
}
@@ -1212,7 +1216,7 @@ issue_2231_2: {
}
expect_stdout: true
expect_warnings: [
- "WARN: Error evaluating Object.getOwnPropertyNames(null) [test/compress/evaluate.js:1208,20]",
+ "WARN: Error evaluating Object.getOwnPropertyNames(null) [test/compress/evaluate.js:1212,20]",
]
}
@@ -1350,14 +1354,14 @@ issue_2535_3: {
}
expect_stdout: true
expect_warnings: [
- "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1336,20]",
- "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1337,20]",
- "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1338,20]",
- "WARN: Condition left of && always false [test/compress/evaluate.js:1338,20]",
- "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1339,20]",
- "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1340,20]",
- "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1341,20]",
- "WARN: Condition left of || always true [test/compress/evaluate.js:1341,20]",
+ "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1340,20]",
+ "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1341,20]",
+ "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1342,20]",
+ "WARN: Condition left of && always false [test/compress/evaluate.js:1342,20]",
+ "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1343,20]",
+ "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1344,20]",
+ "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1345,20]",
+ "WARN: Condition left of || always true [test/compress/evaluate.js:1345,20]",
]
}