Close iterator after error in Promise.{all,race}

Issue #17
This commit is contained in:
janekptacijarabaci 2018-03-15 21:12:39 +01:00 committed by Roy Tam
commit 4cb956bb3b
5 changed files with 330 additions and 17 deletions

View file

@ -6166,6 +6166,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.