File size: 220 Bytes
bc20498
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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};
});