Skip to content

Commit

Permalink
merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Jul 23, 2023
1 parent eb11d3d commit fe6b1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ export const promiseDefer_ = <T> (): { p: Promise<T>, r: (value: T) => void } =>
}

// if `var queueMicrotask`, on Firefox globalThis.queueMicrotask is undefined even when window.queueMicrotask exists
export const queueTask_: typeof queueMicrotask | undefined = !OnFirefox || !(Build.BTypes & BrowserType.Edge
export const queueTask_: typeof queueMicrotask | undefined = Build.NDEBUG && (!(Build.BTypes & BrowserType.Edge
|| Build.BTypes & BrowserType.Firefox && Build.MinFFVer < FirefoxBrowserVer.Min$queueMicrotask
|| Build.BTypes & BrowserType.Chrome && Build.MinCVer < BrowserVer.Min$queueMicrotask)
|| Build.BTypes & BrowserType.Chrome && Build.MinCVer < BrowserVer.Min$queueMicrotask) || !OnFirefox)
? queueMicrotask
: (window as {} as typeof globalThis).queueMicrotask
&& (window as {} as typeof globalThis).queueMicrotask.bind(window)
Expand Down

0 comments on commit fe6b1a9

Please # to comment.