Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchoz49 committed Jun 9, 2020
1 parent 9e3e759 commit a0110de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ function defaultClearTimeout () {
}
function detectQueueMicrotask () {
try {
if (cachedQueueMicrotask !== queueMicrotask) {
if (!cachedQueueMicrotask && cachedQueueMicrotask !== queueMicrotask) {
cachedQueueMicrotask = queueMicrotask;
return true;
}

return cachedQueueMicrotask !== undefined;
} catch (e) {}
} catch (e) {
return false;
}
}
(function () {
try {
Expand Down Expand Up @@ -142,8 +145,6 @@ function drainQueue() {
runClearTimeout(timeout);
}

;

process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
Expand Down

0 comments on commit a0110de

Please sign in to comment.