Adding Jerry api for triggering gc.

JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
This commit is contained in:
Ilyong Cho
2015-10-23 13:29:01 +09:00
committed by Evgeny Gavrin
parent ece246ef9e
commit 1c21e16c7b
3 changed files with 17 additions and 0 deletions
+3
View File
@@ -660,6 +660,9 @@ main (void)
// cleanup.
jerry_api_release_object (global_obj_p);
// TEST: run gc.
jerry_api_gc ();
jerry_cleanup ();
JERRY_ASSERT (test_api_is_free_callback_was_called);