nexttick: minor.

This commit is contained in:
Christopher Jeffrey 2017-06-26 03:37:11 -07:00
parent edb5bb73af
commit 6875fc99c6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);
};