Implement Promise.allsettled (#4616)

Also i updated the promise race and all method to the latest standart

The two jerry/es.next test-cases has been update to support the latest standart

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2021-03-08 10:43:42 +00:00
committed by GitHub
parent 96cd542bf5
commit dc3ae4ff06
11 changed files with 168 additions and 178 deletions
+10
View File
@@ -2120,6 +2120,16 @@ typedef struct
* real index + 1 in the [[Values]] list - otherwise */
} ecma_promise_all_executor_t;
/**
* Promise prototype methods helper.
*/
typedef enum
{
ECMA_PROMISE_ALL_RESOLVE, /**< promise.all resolve */
ECMA_PROMISE_ALLSETTLED_RESOLVE, /**< promise.allSettled resolve */
ECMA_PROMISE_ALLSETTLED_REJECT, /**< promise.allSettled reject */
} ecma_promise_helper;
#endif /* JERRY_ESNEXT */
#if JERRY_BUILTIN_DATAVIEW