From c43e8514a19fc61dfb7bf281e2f13759bd9aa641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Fri, 6 Jun 2025 22:05:36 +0200 Subject: [PATCH 1/2] Add queueMicrotask() --- features/queue-microtask.yml | 5 +++++ features/queue-microtask.yml.dist | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 features/queue-microtask.yml create mode 100644 features/queue-microtask.yml.dist diff --git a/features/queue-microtask.yml b/features/queue-microtask.yml new file mode 100644 index 00000000000..8e77a4acb87 --- /dev/null +++ b/features/queue-microtask.yml @@ -0,0 +1,5 @@ +name: queueMicrotask() +description: The `queueMicrotask()` method schedules a function that runs after the currently running synchronous JavaScript, before returning to the event loop. +spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing +compat_features: + - api.queueMicrotask diff --git a/features/queue-microtask.yml.dist b/features/queue-microtask.yml.dist new file mode 100644 index 00000000000..35099592807 --- /dev/null +++ b/features/queue-microtask.yml.dist @@ -0,0 +1,17 @@ +# Generated from: queue-microtask.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2020-07-28 + baseline_high_date: 2023-01-28 + support: + chrome: "71" + chrome_android: "71" + edge: "79" + firefox: "69" + firefox_android: "79" + safari: "12.1" + safari_ios: "12.2" +compat_features: + - api.queueMicrotask From cfce7d35a8209db402b7d3c33a1dfe3d2c98b1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Wed, 2 Jul 2025 13:33:43 +0200 Subject: [PATCH 2/2] Update features/queue-microtask.yml Co-authored-by: Daniel D. Beck --- features/queue-microtask.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/queue-microtask.yml b/features/queue-microtask.yml index 8e77a4acb87..ce8ee205399 100644 --- a/features/queue-microtask.yml +++ b/features/queue-microtask.yml @@ -1,5 +1,5 @@ name: queueMicrotask() -description: The `queueMicrotask()` method schedules a function that runs after the currently running synchronous JavaScript, before returning to the event loop. +description: The `queueMicrotask()` method schedules a function to run after the currently running synchronous JavaScript finishes but before returning to the event loop. spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing compat_features: - api.queueMicrotask