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 e47195c commit 1467c96Copy full SHA for 1467c96
test/parallel/test-timers-clear-null-does-not-throw-error.js
@@ -0,0 +1,18 @@
1
+'use strict';
2
+require('../common');
3
+const assert = require('assert');
4
+
5
+// This test makes sure clearing timers with
6
+// 'null' or no input does not throw error
7
8
+assert.doesNotThrow(() => clearInterval(null));
9
10
+assert.doesNotThrow(() => clearInterval());
11
12
+assert.doesNotThrow(() => clearTimeout(null));
13
14
+assert.doesNotThrow(() => clearTimeout());
15
16
+assert.doesNotThrow(() => clearImmediate(null));
17
18
+assert.doesNotThrow(() => clearImmediate());
0 commit comments