summaryrefslogtreecommitdiff
path: root/js/src/builtin/Utilities.js
diff options
context:
space:
mode:
authorMartok <martok@martoks-place.de>2023-01-27 20:44:09 +0100
committerMartok <martok@martoks-place.de>2023-02-01 00:02:45 +0100
commit04e13794b2efc5ad2599503a7fd223ffbf322110 (patch)
treec656b902da888fa8d55b124f54de9afed75d0eb6 /js/src/builtin/Utilities.js
parent2421d31e02a9912fc152e820e2fd17ec598fd73e (diff)
downloaduxp-04e13794b2efc5ad2599503a7fd223ffbf322110.tar.gz
Issue #2089 - Implement the Promise.any combinator
Based-on: m-c 1568903/9,1560300
Diffstat (limited to 'js/src/builtin/Utilities.js')
-rw-r--r--js/src/builtin/Utilities.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/builtin/Utilities.js b/js/src/builtin/Utilities.js
index 3916311db3..259fef7ee0 100644
--- a/js/src/builtin/Utilities.js
+++ b/js/src/builtin/Utilities.js
@@ -224,6 +224,15 @@ function GetTypeError(msg) {
assert(false, "the catch block should've returned from this function.");
}
+function GetAggregateError(msg) {
+ try {
+ FUN_APPLY(ThrowAggregateError, undefined, arguments);
+ } catch (e) {
+ return e;
+ }
+ assert(false, "the catch block should've returned from this function.");
+}
+
function GetInternalError(msg) {
try {
FUN_APPLY(ThrowInternalError, undefined, arguments);