mirror of
https://github.com/siemens-mobile-hacks/web-tools.git
synced 2026-11-25 17:17:22 +00:00
24 lines
738 B
Diff
24 lines
738 B
Diff
diff --git a/shims/process/dist/index.cjs b/shims/process/dist/index.cjs
|
|
--- a/shims/process/dist/index.cjs
|
|
+++ b/shims/process/dist/index.cjs
|
|
@@ -150,7 +150,7 @@ process.nextTick = function (fun) {
|
|
}
|
|
queue.push(new Item(fun, args));
|
|
if (queue.length === 1 && !draining) {
|
|
- runTimeout(drainQueue);
|
|
+ queueMicrotask(drainQueue);
|
|
}
|
|
};
|
|
|
|
diff --git a/shims/process/dist/index.js b/shims/process/dist/index.js
|
|
--- a/shims/process/dist/index.js
|
|
+++ b/shims/process/dist/index.js
|
|
@@ -146,7 +146,7 @@ process.nextTick = function (fun) {
|
|
}
|
|
queue.push(new Item(fun, args));
|
|
if (queue.length === 1 && !draining) {
|
|
- runTimeout(drainQueue);
|
|
+ queueMicrotask(drainQueue);
|
|
}
|
|
};
|
|
|