diff --git a/README.md b/README.md
index acd62da..4b62d9e 100644
--- a/README.md
+++ b/README.md
@@ -161,6 +161,7 @@ Add this script on the top of your page:
- allSettled
- any
+
- withResolvers
RegExp
diff --git a/mod.js b/mod.js
index ca02c55..637b2e7 100644
--- a/mod.js
+++ b/mod.js
@@ -242,7 +242,8 @@ var lazyfills = {
},
Promise:{
allSettled:1,
- any:1
+ any:1,
+ withResolvers:1,
},
RegExp:{
prototype:{
diff --git a/polyfills/Promise/withResolvers.js b/polyfills/Promise/withResolvers.js
new file mode 100644
index 0000000..4a74484
--- /dev/null
+++ b/polyfills/Promise/withResolvers.js
@@ -0,0 +1,7 @@
+Promise.withResolvers || (Promise.withResolvers = function withResolvers() {
+ var a, b, c = new this(function (resolve, reject) {
+ a = resolve;
+ b = reject;
+ });
+ return {resolve: a, reject: b, promise: c};
+});
\ No newline at end of file