@@ -1853,10 +1853,6 @@ merge(Compressor.prototype, {
|
|||||||
"isFinite",
|
"isFinite",
|
||||||
"isNaN",
|
"isNaN",
|
||||||
],
|
],
|
||||||
Object: [
|
|
||||||
"keys",
|
|
||||||
"getOwnPropertyNames",
|
|
||||||
],
|
|
||||||
String: [
|
String: [
|
||||||
"fromCharCode",
|
"fromCharCode",
|
||||||
],
|
],
|
||||||
@@ -3496,7 +3492,9 @@ merge(Compressor.prototype, {
|
|||||||
operator: car.operator,
|
operator: car.operator,
|
||||||
expression: left
|
expression: left
|
||||||
});
|
});
|
||||||
} else car.write_only = false;
|
} else {
|
||||||
|
car.write_only = false;
|
||||||
|
}
|
||||||
if (parent) {
|
if (parent) {
|
||||||
parent[field] = car;
|
parent[field] = car;
|
||||||
expressions[i] = expressions[j];
|
expressions[i] = expressions[j];
|
||||||
|
|||||||
@@ -1157,3 +1157,31 @@ issue_2207_3: {
|
|||||||
}
|
}
|
||||||
expect_stdout: true
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_2231_1: {
|
||||||
|
options = {
|
||||||
|
evaluate: true,
|
||||||
|
unsafe: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
console.log(Object.keys(void 0));
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
console.log(Object.keys(void 0));
|
||||||
|
}
|
||||||
|
expect_stdout: true
|
||||||
|
}
|
||||||
|
|
||||||
|
issue_2231_2: {
|
||||||
|
options = {
|
||||||
|
evaluate: true,
|
||||||
|
unsafe: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
console.log(Object.getOwnPropertyNames(null));
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
console.log(Object.getOwnPropertyNames(null));
|
||||||
|
}
|
||||||
|
expect_stdout: true
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user