Add operational mode for jerry_gc API call. (#2385)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2018-06-15 09:31:48 +02:00
committed by yichoi
parent bc827cb497
commit 1044523af7
8 changed files with 59 additions and 15 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ main (void)
jerry_release_value (object);
/* Collect garbage. */
jerry_gc ();
jerry_gc (JERRY_GC_SEVERITY_LOW);
/* Attempt to retrieve the object by its native pointer again. */
TEST_ASSERT (!jerry_objects_foreach_by_native_info (&test_info, find_test_object_by_data, &found_object));
@@ -124,7 +124,7 @@ main (void)
jerry_release_value (args[1]);
/* Collect garbage. */
jerry_gc ();
jerry_gc (JERRY_GC_SEVERITY_LOW);
/* Attempt to retrieve the object by the presence of its property again. */
args[0] = property_name;