Implement the basic Promise (#1695)

Implement the Promise Constructor and routine: 'then'

JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
Zidong Jiang
2017-04-12 22:10:08 +08:00
committed by GitHub
parent 01fe5ab190
commit eb8dd4602b
23 changed files with 1579 additions and 40 deletions
+2
View File
@@ -142,6 +142,8 @@ double jerry_port_get_current_time (void);
#ifndef CONFIG_DISABLE_ES2015_PROMISE_BUILTIN
#define JERRY_PORT_ENABLE_JOBQUEUE
typedef uint32_t (*jerry_job_handler_t) (void *);
void jerry_port_jobqueue_enqueue (jerry_job_handler_t handler, void *job_p);