aboutsummaryrefslogtreecommitdiff
path: root/jerry-core/ecma/base/ecma-globals.h
diff options
context:
space:
mode:
authorkisbg <kisbg@inf.u-szeged.hu>2021-03-08 10:43:42 +0000
committerGitHub <noreply@github.com>2021-03-08 11:43:42 +0100
commitdc3ae4ff06ee811b81b4679e3cd51138a37b4d96 (patch)
tree4a6f3475cf74bd8290249f99331ef80ec3393436 /jerry-core/ecma/base/ecma-globals.h
parent96cd542bf5d09d12791931dcbf054f66f1b5f64f (diff)
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
Diffstat (limited to 'jerry-core/ecma/base/ecma-globals.h')
-rw-r--r--jerry-core/ecma/base/ecma-globals.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/jerry-core/ecma/base/ecma-globals.h b/jerry-core/ecma/base/ecma-globals.h
index dfe047f5..693729d1 100644
--- a/jerry-core/ecma/base/ecma-globals.h
+++ b/jerry-core/ecma/base/ecma-globals.h
@@ -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