From 8ee3ee5e4c84f634a6ca2e6c7c90094c7979c524 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Fri, 10 Apr 2015 10:25:50 +0300 Subject: [PATCH] Fix of exit completion value handling in ECMA_TRY_CATCH. --- jerry-core/ecma/operations/ecma-try-catch-macro.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jerry-core/ecma/operations/ecma-try-catch-macro.h b/jerry-core/ecma/operations/ecma-try-catch-macro.h index 426d85001..0919b55d4 100644 --- a/jerry-core/ecma/operations/ecma-try-catch-macro.h +++ b/jerry-core/ecma/operations/ecma-try-catch-macro.h @@ -31,7 +31,8 @@ */ #define ECMA_TRY_CATCH(var, op, return_value) \ ecma_completion_value_t var ## _completion = op; \ - if (unlikely (ecma_is_completion_value_throw (var ## _completion))) \ + if (unlikely (ecma_is_completion_value_throw (var ## _completion) \ + || ecma_is_completion_value_exit (var ## _completion))) \ { \ return_value = var ## _completion; \ } \