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/jsexn.cpp | |
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/jsexn.cpp')
-rw-r--r-- | js/src/jsexn.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jsexn.cpp b/js/src/jsexn.cpp index 5329fd4eb8..29c76333a1 100644 --- a/js/src/jsexn.cpp +++ b/js/src/jsexn.cpp @@ -756,3 +756,11 @@ js::GetTypeError(JSContext* cx, unsigned errorNumber, MutableHandleValue error) args[0].set(Int32Value(errorNumber)); return CallSelfHostedFunction(cx, "GetTypeError", NullHandleValue, args, error); } + +bool +js::GetAggregateError(JSContext* cx, unsigned errorNumber, MutableHandleValue error) +{ + FixedInvokeArgs<1> args(cx); + args[0].set(Int32Value(errorNumber)); + return CallSelfHostedFunction(cx, "GetAggregateError", NullHandleValue, args, error); +} |