Skip to content

Commit e37d4a5

Browse files
authored
Merge pull request #3613 from swagger-api/bug/3586-promise-polyfill-species-test
Only polyfill `Promise` if it doesn't exist at all
2 parents f5df9ff + db4aa95 commit e37d4a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/polyfills.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
2-
require("core-js/fn/promise")
2+
3+
if(!window.Promise) {
4+
require("core-js/fn/promise")
5+
}

0 commit comments

Comments
 (0)