Skip to content

Commit 3a29ef5

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/promise-withResolvers.ts

Lines changed: 1 addition & 1 deletion
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)