Skip to content

Commit

Permalink
add node version restrictions to fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peey committed May 19, 2017
1 parent e1eec6d commit 5369574
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
@@ -1,3 +1,5 @@
if (parseInt(process.version.slice(1)) < 6) process.exit();

function f({a}, {b}, {c = ""}) { return [a, b, c] }
function g({a}, {b} = {b: 2}) { return [a, b] }
function h({a}, {b} = {b: 2}, c) { return [a, b, c] }
Expand Down
@@ -1,3 +1,5 @@
if (parseInt(process.version.slice(1)) < 6) process.exit();

const val = (function f(a, b = (() => a)) {
var a;
assert.equal(a, 1);
Expand Down
@@ -1,3 +1,5 @@
if (parseInt(process.version.slice(1)) < 6) process.exit();

function single ({a}, b) {
var a = 3;
assert.equal(a, 3);
Expand Down

0 comments on commit 5369574

Please sign in to comment.