diff --git a/src/globals.h b/src/globals.h index e777be880..d52f39cdd 100644 --- a/src/globals.h +++ b/src/globals.h @@ -54,6 +54,7 @@ typedef enum ERR_STRING = -8, ERR_PARSER = -9, ERR_MEMORY = -10, + ERR_SYSCALL = -11, ERR_GENERAL = -255 } jerry_status_t; diff --git a/src/libruntime/jerry-exit.c b/src/libruntime/jerry-exit.c index 45f4368bf..8e845bdc6 100644 --- a/src/libruntime/jerry-exit.c +++ b/src/libruntime/jerry-exit.c @@ -69,6 +69,9 @@ jerry_exit( jerry_status_t code) /**< status code */ case ERR_MEMORY: __printf("ERR_MEMORY\n"); break; + case ERR_SYSCALL: + JERRY_UNREACHABLE(); + break; case ERR_GENERAL: __printf("ERR_GENERAL\n"); break;