Skip to content

Commit

Permalink
fix: Promise.any requires global.AggregateError (#10930)
Browse files Browse the repository at this point in the history
* fix: promise.any requires global.AggregateError

* address review comments
  • Loading branch information
JLHwung committed Dec 27, 2019
1 parent 30f3b07 commit e9dc74e
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -358,7 +358,11 @@ export const StaticProperties: ObjectMap<ObjectMap<string | string[]>> = {
"esnext.promise.all-settled",
...PromiseDependenciesWithIterators,
],
any: ["esnext.promise.any", ...PromiseDependenciesWithIterators],
any: [
"esnext.promise.any",
"esnext.aggregate-error",
...PromiseDependenciesWithIterators,
],
race: PromiseDependenciesWithIterators,
try: ["esnext.promise.try", ...PromiseDependenciesWithIterators],
},
Expand Down

0 comments on commit e9dc74e

Please sign in to comment.