Skip to content

Commit 6857a2f

Browse files
committed
Don't bind functions that don't exist.
1 parent 4fb26ee commit 6857a2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/editor/contrib/inlineCompletions/test/timeTravelScheduler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ export const originalGlobalValues = {
249249
clearTimeout: globalThis.clearTimeout.bind(globalThis),
250250
setInterval: globalThis.setInterval.bind(globalThis),
251251
clearInterval: globalThis.clearInterval.bind(globalThis),
252-
setImmediate: globalThis.setImmediate.bind(globalThis),
253-
clearImmediate: globalThis.clearImmediate.bind(globalThis),
254-
requestAnimationFrame: globalThis.requestAnimationFrame.bind(globalThis),
255-
cancelAnimationFrame: globalThis.cancelAnimationFrame.bind(globalThis),
252+
setImmediate: globalThis.setImmediate?.bind(globalThis),
253+
clearImmediate: globalThis.clearImmediate?.bind(globalThis),
254+
requestAnimationFrame: globalThis.requestAnimationFrame?.bind(globalThis),
255+
cancelAnimationFrame: globalThis.cancelAnimationFrame?.bind(globalThis),
256256
Date: globalThis.Date,
257257
};
258258

0 commit comments

Comments
 (0)