From 19c15b03b049394e0c1f03f2e9cb1b24d119b7c9 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Tue, 22 Jul 2014 21:47:33 +0400 Subject: [PATCH] Reverting changes in jerry_Exit and adding comment about jerry_AssertFail call. --- src/libruntime/jerry-exit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libruntime/jerry-exit.c b/src/libruntime/jerry-exit.c index 277f0b2b9..296383762 100644 --- a/src/libruntime/jerry-exit.c +++ b/src/libruntime/jerry-exit.c @@ -69,9 +69,10 @@ jerry_Exit( jerry_Status_t code) /**< status code */ case ERR_GENERAL: __printf("ERR_GENERAL\n"); break; - default: - __printf( "Return code is zero"); } + + /* The failed assertion is 'Return code is zero' */ + jerry_AssertFail( "Return code is zero", __FILE__, __LINE__); } #endif /* !JERRY_NDEBUG */