Fix assertion on unhandled exceptions

Follow up fix after #815 ('a187e6d'). Fixed the following
assertion on unhandled exceptions:
  * ICE: Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT'
    failed at ecma-helpers-value.c(ecma_get_object_from_value):375.

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2016-04-08 10:02:12 +02:00
parent 920a9ee244
commit b78f5a55bb
10 changed files with 74 additions and 28 deletions
+6
View File
@@ -2238,6 +2238,9 @@ parser_set_show_instrs (int show_instrs) /**< flag indicating whether to dump by
/**
* Parse EcamScript source code
*
* Note:
* returned error object should be freed with jerry_api_release_object
*/
jsp_status_t
parser_parse_script (const jerry_api_char_t *source_p, /**< source code */
@@ -2260,6 +2263,9 @@ parser_parse_script (const jerry_api_char_t *source_p, /**< source code */
/**
* Parse EcamScript eval source code
*
* Note:
* returned error object should be freed with jerry_api_release_object
*/
jsp_status_t
parser_parse_eval (const jerry_api_char_t *source_p, /**< source code */