Skip to content

Commit 3a29ef5

Browse files
committed
use is supported check
1 parent d074910 commit 3a29ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/promise-withResolvers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function isPolyfilled(): boolean {
2424
}
2525

2626
export function apply(): void {
27-
if (!('withResolvers' in Promise)) {
27+
if (!isSupported()) {
2828
Object.assign(Promise, {withResolvers})
2929
}
3030
}

0 commit comments

Comments
 (0)