Skip to content

Commit 1f3d2e9

Browse files
authored
fix(shim): call install directly, not with setTimeout
1 parent 3e1dbeb commit 1f3d2e9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/_internal.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export const uncurryThis: <T, A extends readonly any[], R = any>(
2525
_self?: T,
2626
) => (self: T, ...args: A) => R = bind.bind(call);
2727

28-
export const $setTimeout: typeof globalThis.setTimeout = globalThis.setTimeout;
29-
3028
export const $FunctionPrototypeBind: <T, A extends any[], B extends any[], R>(
3129
self: (this: T, ...args: [...A, ...B]) => R,
3230
thisArg: T,

src/shim.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@
1414
*/
1515
import "./shim.d.ts";
1616
import { install } from "./install.ts";
17-
import { $setTimeout } from "./_internal.ts";
1817

19-
// TODO(nberlette): is this really necessary? Can't we just call it directly?
20-
$setTimeout(install, 0);
18+
install();

0 commit comments

Comments
 (0)