Skip to content

Commit 0ededfd

Browse files
committedMar 12, 2022
Fixed bug with finally
1 parent 03c9a58 commit 0ededfd

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
 

‎dist/polyfill.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,13 @@ var globalNS = (function() {
348348
// https://github.com/taylorhakes/promise-polyfill/issues/114
349349
if (typeof globalNS['Promise'] !== 'function') {
350350
globalNS['Promise'] = Promise;
351-
} else if (!globalNS.Promise.prototype['finally']) {
352-
globalNS.Promise.prototype['finally'] = finallyConstructor;
353-
} else if (!globalNS.Promise.allSettled) {
354-
globalNS.Promise.allSettled = allSettled;
351+
} else {
352+
if (!globalNS.Promise.prototype['finally']) {
353+
globalNS.Promise.prototype['finally'] = finallyConstructor;
354+
}
355+
if (!globalNS.Promise.allSettled) {
356+
globalNS.Promise.allSettled = allSettled;
357+
}
355358
}
356359

357360
})));

‎dist/polyfill.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "promise-polyfill",
3-
"version": "8.2.2",
3+
"version": "8.2.3",
44
"description": "Lightweight promise polyfill. A+ compliant",
55
"main": "lib/index.js",
66
"module": "src/index.js",

0 commit comments

Comments
 (0)
Please sign in to comment.