Skip to content

Commit

Permalink
use is supported check
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcosta7 committed Oct 17, 2024
1 parent d074910 commit 3a29ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/promise-withResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function isPolyfilled(): boolean {
}

export function apply(): void {
if (!('withResolvers' in Promise)) {
if (!isSupported()) {
Object.assign(Promise, {withResolvers})
}
}

0 comments on commit 3a29ef5

Please sign in to comment.