We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48992f commit 333b5a0Copy full SHA for 333b5a0
test/parallel/test-timers-promises-scheduler.js
@@ -7,6 +7,7 @@ const { setTimeout } = require('timers');
7
const {
8
strictEqual,
9
rejects,
10
+ throws,
11
} = require('assert');
12
13
async function testYield() {
@@ -48,3 +49,7 @@ async function testCancelableWait2() {
48
49
}
50
51
testCancelableWait2().then(common.mustCall());
52
+
53
+throws(() => new scheduler.constructor(), {
54
+ code: 'ERR_ILLEGAL_CONSTRUCTOR',
55
+});
0 commit comments