Skip to content

Commit

Permalink
Merge pull request #1417 from kangax/promise-any
Browse files Browse the repository at this point in the history
[ESNext] Add `Promise.any`
  • Loading branch information
zloirock committed Feb 3, 2019
2 parents 215b3d5 + d944b2a commit 99c901a
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 9 deletions.
21 changes: 21 additions & 0 deletions data-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,27 @@ exports.tests = [
},
]
},
{
name: 'Promise.any',
category: STAGE0,
significance: 'small',
spec: 'https://github.com/tc39/proposal-promise-any',
exec: function () {/*
Promise.any([
Promise.resolve(1),
Promise.reject(2),
Promise.resolve(3)
]).then(it => {
if (it === 1) asyncTestPassed();
});
*/},
res: {
babel6corejs2: false,
babel7corejs3: babel.corejs,
typescript1corejs2: typescript.fallthrough,
typescript3_2corejs3: typescript.corejs,
}
},
];


Expand Down
Loading

0 comments on commit 99c901a

Please sign in to comment.