nexttick: minor.
This commit is contained in:
parent
edb5bb73af
commit
6875fc99c6
@ -7,5 +7,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function nextTick(handler) {
|
||||
if (typeof handler !== 'function')
|
||||
throw new Error('callback must be a function.');
|
||||
|
||||
setImmediate(handler);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user