diff --git a/docs/05.PORT-API.md b/docs/05.PORT-API.md index 759af10f3..bfdab9e13 100644 --- a/docs/05.PORT-API.md +++ b/docs/05.PORT-API.md @@ -25,8 +25,8 @@ Error codes typedef enum { ERR_OUT_OF_MEMORY = 10, - ERR_SYSCALL = 11, ERR_REF_COUNT_LIMIT = 12, + ERR_DISABLED_BYTE_CODE = 13, ERR_FAILED_INTERNAL_ASSERTION = 120 } jerry_fatal_code_t; ``` diff --git a/jerry-core/include/jerryscript-port.h b/jerry-core/include/jerryscript-port.h index cc6eca8ce..f79efed0b 100644 --- a/jerry-core/include/jerryscript-port.h +++ b/jerry-core/include/jerryscript-port.h @@ -48,7 +48,6 @@ extern "C" typedef enum { ERR_OUT_OF_MEMORY = 10, - ERR_SYSCALL = 11, ERR_REF_COUNT_LIMIT = 12, ERR_DISABLED_BYTE_CODE = 13, ERR_FAILED_INTERNAL_ASSERTION = 120 diff --git a/jerry-core/jrt/jrt-fatals.c b/jerry-core/jrt/jrt-fatals.c index 838cbc925..8421981f1 100644 --- a/jerry-core/jrt/jrt-fatals.c +++ b/jerry-core/jrt/jrt-fatals.c @@ -37,11 +37,6 @@ jerry_fatal (jerry_fatal_code_t code) /**< status code */ JERRY_ERROR_MSG ("Error: ERR_OUT_OF_MEMORY\n"); break; } - case ERR_SYSCALL: - { - /* print nothing as it may invoke syscall recursively */ - break; - } case ERR_REF_COUNT_LIMIT: { JERRY_ERROR_MSG ("Error: ERR_REF_COUNT_LIMIT\n"); diff --git a/jerry-core/vm/vm.c b/jerry-core/vm/vm.c index 16468b3a9..dc137191e 100644 --- a/jerry-core/vm/vm.c +++ b/jerry-core/vm/vm.c @@ -3112,7 +3112,6 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ JERRY_ASSERT (VM_OC_GROUP_GET_INDEX (opcode_data) == VM_OC_NONE); jerry_fatal (ERR_DISABLED_BYTE_CODE); - JERRY_UNREACHABLE (); } }