summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-make-callback.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-02-09 00:54:31 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-26 23:18:12 +0000
commite9f2cecf1a14285574f9b6104dd690ef92495d74 (patch)
tree6160626254f229aceff338614f71a2091a55e485 /test/parallel/test-fs-make-callback.js
parent009e41826f47c595ca994f673023f9380198be36 (diff)
downloadnode-new-e9f2cecf1a14285574f9b6104dd690ef92495d74.tar.gz
Revert "fs: Revert throw on invalid callbacks"
This reverts commit 8250bfd1e5188d5dada58aedf7a991e959d5eaa9. PR-URL: https://github.com/nodejs/node/pull/18668 Refs: https://github.com/nodejs/node/pull/12562 Refs: https://github.com/nodejs/node/pull/12976 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'test/parallel/test-fs-make-callback.js')
-rw-r--r--test/parallel/test-fs-make-callback.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/parallel/test-fs-make-callback.js b/test/parallel/test-fs-make-callback.js
index 9d4a6121a3..d3ff165513 100644
--- a/test/parallel/test-fs-make-callback.js
+++ b/test/parallel/test-fs-make-callback.js
@@ -4,7 +4,6 @@ const fs = require('fs');
const callbackThrowValues = [null, true, false, 0, 1, 'foo', /foo/, [], {}];
const { sep } = require('path');
-const warn = 'Calling an asynchronous function without callback is deprecated.';
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
@@ -16,11 +15,6 @@ function testMakeCallback(cb) {
};
}
-common.expectWarning('DeprecationWarning', warn);
-
-// Passing undefined/nothing calls rethrow() internally, which emits a warning
-testMakeCallback()();
-
function invalidCallbackThrowsTests() {
callbackThrowValues.forEach((value) => {
common.expectsError(testMakeCallback(value), {