Skip to content

Commit

Permalink
Drop Node.js v4 (terser#207)
Browse files Browse the repository at this point in the history
v4 EOL was 2018-04-30, module bundlers require at least v6.
  • Loading branch information
nifgraup committed Jan 6, 2019
1 parent aa574b6 commit 80ac64f
Show file tree
Hide file tree
Showing 31 changed files with 1 addition and 181 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ os:
- windows
language: node_js
node_js:
- 4
- 6
- 8
- 10
Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
environment:
matrix:
- nodejs_version: "4"
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "BSD-2-Clause",
"version": "3.14.1",
"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"maintainers": [
"Fábio Santos <fabiosantosart@gmail.com>",
Expand Down
5 changes: 0 additions & 5 deletions test/compress/arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ arguments_in_arrow_func_1: {
"42 'bar' undefined 'bar' 42 false",
"42 'bar' undefined 'bar' 42 false",
]
node_version: ">=6"
}

arguments_in_arrow_func_2: {
Expand Down Expand Up @@ -286,7 +285,6 @@ arguments_in_arrow_func_2: {
"42 'bar' undefined 'bar' 42 false",
"42 'bar' undefined 'bar' 42 false",
]
node_version: ">=6"
}

arguments_and_destructuring_1: {
Expand All @@ -305,7 +303,6 @@ arguments_and_destructuring_1: {
}({ d: "Bar" });
}
expect_stdout: "foo Bar"
node_version: ">=6"
}

arguments_and_destructuring_2: {
Expand All @@ -324,7 +321,6 @@ arguments_and_destructuring_2: {
}("baz", { d: "Bar" });
}
expect_stdout: "foo baz"
node_version: ">=6"
}

arguments_and_destructuring_3: {
Expand All @@ -343,7 +339,6 @@ arguments_and_destructuring_3: {
}({ d: "Bar" }, "baz");
}
expect_stdout: "foo Bar"
node_version: ">=6"
}

duplicate_parameter_with_arguments: {
Expand Down
6 changes: 0 additions & 6 deletions test/compress/arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ arrow_unused: {
fn(3);
}
expect_stdout: [ "0", "1", "2", "9" ]
node_version: ">=6"
}

arrow_unused_toplevel: {
Expand Down Expand Up @@ -200,7 +199,6 @@ arrow_unused_toplevel: {
fn(3);
}
expect_stdout: [ "0", "1", "2", "9" ]
node_version: ">=6"
}

no_leading_parentheses: {
Expand Down Expand Up @@ -363,7 +361,6 @@ issue_2105_2: {
}).prop();
}
expect_stdout: "PASS"
node_version: ">=6"
}

issue_2136_2: {
Expand All @@ -390,7 +387,6 @@ issue_2136_2: {
f([2,3][0]);
}
expect_stdout: "2"
node_version: ">=6"
}

issue_2136_3: {
Expand Down Expand Up @@ -420,7 +416,6 @@ issue_2136_3: {
console.log(2);
}
expect_stdout: "2"
node_version: ">=6"
}

call_args: {
Expand Down Expand Up @@ -669,7 +664,6 @@ issue_3092a: {
}.gen("pass").next().value);
}
expect_stdout: "PASS"
node_version: ">=6"
}

issue_3092b: {
Expand Down
1 change: 0 additions & 1 deletion test/compress/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ issue_3079: {
"2",
"3",
]
node_version: ">=6"
}

issue_3079_2: {
Expand Down
2 changes: 0 additions & 2 deletions test/compress/block-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ regression_block_scope_resolves: {
}());
}
expect_stdout: "undefined undefined undefined undefined undefined undefined"
node_version: ">=6"
}

switch_block_scope_mangler: {
Expand Down Expand Up @@ -187,5 +186,4 @@ switch_block_scope_mangler: {
"4",
"6",
]
node_version: ">=6"
}
5 changes: 0 additions & 5 deletions test/compress/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ issue_1664: {
console.log(a);
}
expect_stdout: "1"
node_version: ">=6"
reminify: false // FIXME - block scoped function
}

Expand Down Expand Up @@ -102,7 +101,6 @@ issue_1672_for: {
}
}
expect_stdout: true
node_version: ">=6"
}

issue_1672_for_strict: {
Expand Down Expand Up @@ -131,7 +129,6 @@ issue_1672_for_strict: {
}
}
expect_stdout: true
node_version: ">=6"
}

issue_1672_if: {
Expand All @@ -156,7 +153,6 @@ issue_1672_if: {
}
}
expect_stdout: true
node_version: ">=6"
}

issue_1672_if_strict: {
Expand Down Expand Up @@ -185,7 +181,6 @@ issue_1672_if_strict: {
}
}
expect_stdout: true
node_version: ">=6"
}

issue_2946_else_const: {
Expand Down
1 change: 0 additions & 1 deletion test/compress/conditionals.js
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,6 @@ issue_2994: {
"2",
"2",
]
node_version: ">=6"
}

hoist_decl: {
Expand Down
4 changes: 0 additions & 4 deletions test/compress/dead-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ dead_code_2_should_warn: {
f();
}
expect_stdout: true
node_version: ">=6"
reminify: false // FIXME - block scoped function
}

Expand Down Expand Up @@ -135,7 +134,6 @@ dead_code_constant_boolean_should_warn_more: {
bar();
}
expect_stdout: true
node_version: ">=6"
reminify: false // FIXME - block scoped function
}

Expand Down Expand Up @@ -613,7 +611,6 @@ issue_2383_2: {
console.log(x, q, w, z);
}
expect_stdout: "undefined undefined undefined undefined"
node_version: ">=6"
}

issue_2383_3: {
Expand All @@ -636,7 +633,6 @@ issue_2383_3: {
console.log(a, x, y, z, b);
}
expect_stdout: "undefined undefined 8 undefined 7"
node_version: ">=6"
}

collapse_vars_assignment: {
Expand Down

0 comments on commit 80ac64f

Please sign in to comment.