From b6b2a4fb563d5d726de65b080d9720222ae327bf Mon Sep 17 00:00:00 2001 From: x13machine Date: Mon, 11 Mar 2019 14:56:10 -0500 Subject: [PATCH] fix test failure --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 8e2f30c0bd..b7b8518d7f 100644 --- a/test/index.js +++ b/test/index.js @@ -447,7 +447,7 @@ function parseArg(argv) { orphans = [], arg; - argv = argv.slice(2); + argv = Array.isArray(argv) ? argv.slice(2) : []; function getarg() { var arg = argv.shift();