diff options
author | Martok <martok@martoks-place.de> | 2023-01-27 20:44:09 +0100 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2023-02-01 00:02:45 +0100 |
commit | 04e13794b2efc5ad2599503a7fd223ffbf322110 (patch) | |
tree | c656b902da888fa8d55b124f54de9afed75d0eb6 /js/src/builtin/Utilities.js | |
parent | 2421d31e02a9912fc152e820e2fd17ec598fd73e (diff) | |
download | uxp-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.js | 9 |
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); |