Skip to content

Commit ede1957

Browse files
legendecasdbatyai
authored andcommitted
Fix handle-scope unittest force conversion complaints (#3209)
JerryScript-DCO-1.0-Signed-off-by: legendecas [email protected]
1 parent 6f515f0 commit ede1957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit-ext/test-ext-handle-scope-nested.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ create_object_nested (int times)
5858

5959
// If leaves `escaped` uninitialized, there will be a style error on linux thrown by compiler
6060
jerry_value_t escaped = 0;
61-
int status = jerryx_escape_handle (scope, obj, &escaped);
62-
TEST_ASSERT (status == 0);
61+
jerryx_handle_scope_status status = jerryx_escape_handle (scope, obj, &escaped);
62+
TEST_ASSERT (status == jerryx_handle_scope_ok);
6363
TEST_ASSERT (scope->prelist_handle_count == 0);
6464
TEST_ASSERT (scope->handle_ptr == NULL);
6565

0 commit comments

Comments
 (0)