nexttick-browser: minor.

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

View File

@ -96,6 +96,9 @@ function hasSetImmediate() {
function installSetImmediate() {
return function nextTick(handler) {
if (typeof handler !== 'function')
throw new Error('callback must be a function.');
setImmediate(handler);
};
}