fix: Promise.any requires global.AggregateError (#10930)

* fix: promise.any requires global.AggregateError

* address review comments
This commit is contained in:
Huáng Jùnliàng
2019-12-26 20:29:47 -05:00
committed by GitHub
parent 30f3b07ebf
commit e9dc74e787

View File

@@ -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],
},