From 938a46391105b4f56bc1c07144dba362da74b4b1 Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Sun, 5 May 2019 10:42:25 +0900 Subject: [PATCH] update the comment ref. https://github.com/bcoe/c8/pull/91#discussion_r281000192 --- bin/c8.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/c8.js b/bin/c8.js index abf0d69f..a00da7fe 100755 --- a/bin/c8.js +++ b/bin/c8.js @@ -21,7 +21,8 @@ async function run () { ].indexOf(argv._[0]) !== -1) { argv = buildYargs(true).parse(process.argv.slice(2)) } else { - // allow c8 to run on Node 8 (coverage just won't work). + // fs.promises was not added until Node.js v10.0.0, if it doesn't + // exist, assume we're Node.js v8.x and skip coverage. if (!promises) { foreground(hideInstrumenterArgs(argv)) return