Skip to content

Commit fef58b3

Browse files
committed
Revert "use globalThis"
This reverts commit 92b2739.
1 parent 2f8b647 commit fef58b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
let promise
33

44
module.exports = typeof queueMicrotask === 'function'
5-
? queueMicrotask.bind(globalThis)
5+
? queueMicrotask.bind(typeof window !== 'undefined' ? window : global)
66
// reuse resolved promise, and allocate it lazily
77
: cb => (promise || (promise = Promise.resolve()))
88
.then(cb)

0 commit comments

Comments
 (0)