mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
fcc934f3d0
Fix errors that are caused by invoking clearImmediate with arbitrary objects. fixes: https://github.com/nodejs/node/issues/37806 PR-URL: https://github.com/nodejs/node/pull/37824 Fixes: https://github.com/nodejs/node/issues/37806 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
9 lines
164 B
JavaScript
9 lines
164 B
JavaScript
'use strict';
|
|
require('../common');
|
|
|
|
// This test makes sure clearing timers with
|
|
// objects doesn't throw
|
|
clearImmediate({});
|
|
clearTimeout({});
|
|
clearInterval({});
|