From 7b0abeac967d80fe7167a56349097b016b65b4a3 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Wed, 10 May 2017 00:17:40 +0530 Subject: [PATCH] call writeFileSync where callback is ignored As https://github.com/nodejs/node/pull/12562 landed in Node.js, calling an asynchronous function without callback function will fail in Node.js version 8. --- test/bin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bin.js b/test/bin.js index 099e87c..83eea76 100644 --- a/test/bin.js +++ b/test/bin.js @@ -27,7 +27,7 @@ test('bin', function (t) { run(files.bundle, function (err, output) { t.ifError(err); t.equal(output, '555\n'); - fs.writeFile(files.main, 'console.log(333)'); + fs.writeFileSync(files.main, 'console.log(333)'); }) } else if (lineNum === 2) {