Replace the jerry_value_set_error_flag function with jerry_create_error_from_value (#2367)

JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu
This commit is contained in:
Istvan Miklos
2018-06-11 03:16:58 +02:00
committed by yichoi
parent be59d0a224
commit 2d0e37ff74
6 changed files with 83 additions and 33 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ main (void)
TEST_ASSERT (jerry_value_is_abort (value));
TEST_ASSERT (jerry_value_is_error (value));
jerry_value_set_error_flag (&value);
value = jerry_create_error_from_value (value, true);
TEST_ASSERT (!jerry_value_is_abort (value));
TEST_ASSERT (jerry_value_is_error (value));