expand testing on Node.js versions (#3779)

This commit is contained in:
Alex Lam S.L
2020-04-14 03:13:42 +01:00
committed by GitHub
parent 77261e1ee0
commit c4d28e3b2a
8 changed files with 24 additions and 22 deletions

View File

@@ -186,7 +186,7 @@ describe("test/reduce.js", function() {
].join("\n"));
});
it("Should reduce infinite loops with reasonable performance", function() {
if (semver.satisfies(process.version, "0.10")) return;
if (semver.satisfies(process.version, "<=0.10")) return;
this.timeout(120000);
var result = reduce_test("while (/9/.test(1 - .8));", {
compress: {
@@ -211,7 +211,7 @@ describe("test/reduce.js", function() {
it("Should ignore difference in Error.message", function() {
var result = reduce_test("null[function() {\n}];");
if (result.error) throw result.error;
assert.strictEqual(result.code, (semver.satisfies(process.version, "0.10") ? [
assert.strictEqual(result.code, (semver.satisfies(process.version, "<=0.10") ? [
"// Can't reproduce test failure",
"// minify options: {}",
] : [