LibJS: Generalize PromiseAllResolveElementFunction common functionality

The element-resolving functions on the Promise constructor are all very
similar. To prepare for more of these functions to be implemented, break
out common parts into a base class.
This commit is contained in:
Timothy Flynn 2021-08-21 15:23:12 -04:00 committed by Linus Groh
commit 417523507e
Notes: sideshowbarker 2024-07-18 05:22:20 +09:00
4 changed files with 62 additions and 36 deletions

View file

@ -12,9 +12,9 @@
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/IteratorOperations.h>
#include <LibJS/Runtime/Promise.h>
#include <LibJS/Runtime/PromiseAllResolveElementFunction.h>
#include <LibJS/Runtime/PromiseConstructor.h>
#include <LibJS/Runtime/PromiseReaction.h>
#include <LibJS/Runtime/PromiseResolvingElementFunctions.h>
#include <LibJS/Runtime/TemporaryClearException.h>
namespace JS {