diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-15 21:12:39 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-15 21:12:39 +0100 |
commit | 114794557687aebca601c38ba0f0a52a43b44d4a (patch) | |
tree | 1ca375db23843dcd4c593bcb28d7173856bddc10 /js/src/jsapi.h | |
parent | 25550ce903d01f31bead59de945e4adf86819440 (diff) | |
download | uxp-114794557687aebca601c38ba0f0a52a43b44d4a.tar.gz |
Close iterator after error in Promise.{all,race}
Issue #17
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r-- | js/src/jsapi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 2d6ff462c0..a93852fa5d 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -6167,6 +6167,12 @@ class MOZ_STACK_CLASS JS_PUBLIC_API(ForOfIterator) { bool next(JS::MutableHandleValue val, bool* done); /** + * Close the iterator. + * For the case that completion type is throw. + */ + void closeThrow(); + + /** * If initialized with throwOnNonCallable = false, check whether * the value is iterable. */ |