Skip to content

Commit

Permalink
move Promise.allSettled to stage 3
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 10, 2019
1 parent 305a701 commit 14d6d89
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,25 @@ core-js(-pure)/features/global-this
```js
globalThis.Array === Array; // => true
```
* `Promise.allSettled` [proposal](https://github.com/tc39/proposal-promise-allSettled) - module [`esnext.promise.all-settled`](https:/zloirock/core-js/blob/v3.0.1/packages/core-js/modules/esnext.promise.all-settled.js)
```js
class Promise {
static allSettled(iterable): promise;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/promise-all-settled
core-js(-pure)/features/promise/all-settled
```
[*Examples*](https://goo.gl/PXXLNJ):
```js
Promise.allSettled([
Promise.resolve(1),
Promise.reject(2),
Promise.resolve(3),
]).then(console.log); // => [{ value: 1, status: 'fulfilled' }, { reason: 2, status: 'rejected' }, { value: 3, status: 'fulfilled' }]
```

#### Stage 2 proposals
[*CommonJS entry points:*](#commonjs-api)
Expand Down Expand Up @@ -1645,25 +1664,6 @@ new Set([1, 2, 3]).isDisjointFrom([4, 5, 6]); // => true
new Set([1, 2, 3]).isSubsetOf([5, 4, 3, 2, 1]); // => true
new Set([5, 4, 3, 2, 1]).isSupersetOf([1, 2, 3]); // => true
```
* `Promise.allSettled` [proposal](https://github.com/tc39/proposal-promise-allSettled) - module [`esnext.promise.all-settled`](https:/zloirock/core-js/blob/v3.0.1/packages/core-js/modules/esnext.promise.all-settled.js)
```js
class Promise {
static allSettled(iterable): promise;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/promise-all-settled
core-js(-pure)/features/promise/all-settled
```
[*Examples*](https://goo.gl/PXXLNJ):
```js
Promise.allSettled([
Promise.resolve(1),
Promise.reject(2),
Promise.resolve(3),
]).then(console.log); // => [{ value: 1, status: 'fulfilled' }, { reason: 2, status: 'rejected' }, { value: 3, status: 'fulfilled' }]
```

#### Stage 1 proposals
[*CommonJS entry points:*](#commonjs-api)
Expand Down
1 change: 0 additions & 1 deletion packages/core-js/stage/2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('../proposals/set-methods');
require('../proposals/promise-all-settled');

module.exports = require('./3');
1 change: 1 addition & 0 deletions packages/core-js/stage/3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('../proposals/global-this');
require('../proposals/string-match-all');
require('../proposals/promise-all-settled');

module.exports = require('./4');

0 comments on commit 14d6d89

Please sign in to comment.