nexttick-browser: minor.
This commit is contained in:
parent
6875fc99c6
commit
03303d670d
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user