Files
Kmake/test/parallel/test-timers-clear-null-does-not-throw-error.js

12 lines
239 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
'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();