summaryrefslogtreecommitdiff
path: root/test/parallel/test-timers-clear-null-does-not-throw-error.js
blob: 89d433c191abe1951a0f162a1ccd4f67782b2212 (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';
require('../common');

// This test makes sure clearing timers with
// 'null' or no input does not throw error
clearInterval(null);
clearInterval();
clearTimeout(null);
clearTimeout();
clearImmediate(null);
clearImmediate();