From a32b149a1a8f1144d1d221354c0667901e816a23 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 2 Apr 2015 15:52:25 +0300 Subject: [PATCH] Fixing handling of 'undefined' value in jerry_api_convert_ecma_value_to_api_value. --- jerry-core/jerry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/jerry.cpp b/jerry-core/jerry.cpp index 380e69a21..e8cf6c103 100644 --- a/jerry-core/jerry.cpp +++ b/jerry-core/jerry.cpp @@ -80,7 +80,7 @@ jerry_api_convert_ecma_value_to_api_value (jerry_api_value_t *out_value_p, /**< { out_value_p->type = JERRY_API_DATA_TYPE_UNDEFINED; } - if (ecma_is_value_null (value)) + else if (ecma_is_value_null (value)) { out_value_p->type = JERRY_API_DATA_TYPE_NULL; }