diff options
author | Zsolt Borbély <zsborbely.u-szeged@partner.samsung.com> | 2017-10-04 15:46:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 15:46:18 +0200 |
commit | 1cc7cb58ce7ca0ddb84cf543b5c71ebf198ecb0e (patch) | |
tree | 8eca1ab8a10d94df9e6cd55ba3402da539fc9749 | |
parent | eb92b22b19a30f332e31156a17d316513728caf9 (diff) |
Enable promise builtin for nuttx-stm32f4 target (#2033)
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
-rw-r--r-- | targets/nuttx-stm32f4/Makefile | 2 | ||||
-rw-r--r-- | targets/nuttx-stm32f4/jerry_main.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/targets/nuttx-stm32f4/Makefile b/targets/nuttx-stm32f4/Makefile index 46077c76..55ded68e 100644 --- a/targets/nuttx-stm32f4/Makefile +++ b/targets/nuttx-stm32f4/Makefile @@ -25,7 +25,7 @@ APPNAME = jerry ROOT_DIR = ../../.. PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY) STACKSIZE = $(CONFIG_JERRYSCRIPT_STACKSIZE) -CFLAGS += -std=c99 -DJERRY_NDEBUG -DJERRY_JS_PARSER '-DCONFIG_MEM_HEAP_AREA_SIZE=$(CONFIG_JERRYSCRIPT_HEAPSIZE)' -DCONFIG_DISABLE_ES2015_PROMISE_BUILTIN +CFLAGS += -std=c99 -DJERRY_NDEBUG -DJERRY_JS_PARSER '-DCONFIG_MEM_HEAP_AREA_SIZE=$(CONFIG_JERRYSCRIPT_HEAPSIZE)' CFLAGS += -I$(ROOT_DIR)/ $(shell find $(ROOT_DIR)/jerryscript/jerry-core -type d | sed -r -e 's/^/-I/g') CFLAGS += -I$(ROOT_DIR)/jerryscript/jerry-libm/include CFLAGS += -I$(ROOT_DIR)/jerryscript/jerry-ext/include diff --git a/targets/nuttx-stm32f4/jerry_main.c b/targets/nuttx-stm32f4/jerry_main.c index 97f4d52e..2cdbfadf 100644 --- a/targets/nuttx-stm32f4/jerry_main.c +++ b/targets/nuttx-stm32f4/jerry_main.c @@ -494,6 +494,15 @@ int jerry_main (int argc, char *argv[]) } jerry_release_value (ret_value); + + ret_value = jerry_run_all_enqueued_jobs (); + + if (jerry_value_has_error_flag (ret_value)) + { + ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; + } + + jerry_release_value (ret_value); jerry_cleanup (); return ret_code; |