Add a callback which is called when Error objects are created (#4465)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
+1
-1
@@ -1714,7 +1714,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
|
||||
case VM_OC_THROW_SYNTAX_ERROR:
|
||||
{
|
||||
ecma_string_t *msg_p = ecma_get_string_from_value (left_value);
|
||||
ecma_object_t *error_obj_p = ecma_new_standard_error_with_message (ECMA_ERROR_SYNTAX, msg_p);
|
||||
ecma_object_t *error_obj_p = ecma_new_standard_error (ECMA_ERROR_SYNTAX, msg_p);
|
||||
jcontext_raise_exception (ecma_make_object_value (error_obj_p));
|
||||
result = ECMA_VALUE_ERROR;
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user