Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 975d2e9

Browse files
committed
Add queueMicrotask to sandbox
1 parent f01624b commit 975d2e9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/core/src/plugins/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export class CorePlugin extends Plugin<CoreOptions> implements CoreOptions {
251251
setInterval: inputGatedSetInterval,
252252
clearTimeout,
253253
clearInterval,
254+
queueMicrotask,
254255

255256
atob,
256257
btoa,

packages/core/test/plugins/core.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ test("CorePlugin: setup: includes web standards", async (t) => {
197197
t.true(typeof globals.setInterval === "function");
198198
t.true(typeof globals.clearTimeout === "function");
199199
t.true(typeof globals.clearInterval === "function");
200+
t.true(typeof globals.queueMicrotask === "function");
200201

201202
t.true(typeof globals.atob === "function");
202203
t.true(typeof globals.btoa === "function");

0 commit comments

Comments
 (0)