|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
402 bytes
|
| Line | |
|---|
| 1 | /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|---|
| 2 | let promise
|
|---|
| 3 |
|
|---|
| 4 | module.exports = typeof queueMicrotask === 'function'
|
|---|
| 5 | ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global)
|
|---|
| 6 | // reuse resolved promise, and allocate it lazily
|
|---|
| 7 | : cb => (promise || (promise = Promise.resolve()))
|
|---|
| 8 | .then(cb)
|
|---|
| 9 | .catch(err => setTimeout(() => { throw err }, 0))
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.