Skip to content

Commit 33b5bfe

Browse files
committed
Fix warning when returning from vm_loop.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
1 parent f2bdf08 commit 33b5bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jerry-core/vm/vm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
13481348
frame_ctx_p->byte_code_p = byte_code_start_p;
13491349
frame_ctx_p->stack_top_p = stack_top_p;
13501350
frame_ctx_p->call_block_result = block_result;
1351-
return;
1351+
return ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED);
13521352
}
13531353
frame_ctx_p->call_operation = VM_NO_EXEC_OP;
13541354

@@ -1380,7 +1380,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
13801380
frame_ctx_p->byte_code_p = byte_code_start_p;
13811381
frame_ctx_p->stack_top_p = stack_top_p;
13821382
frame_ctx_p->call_block_result = block_result;
1383-
return;
1383+
return ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED);
13841384
}
13851385
frame_ctx_p->call_operation = VM_NO_EXEC_OP;
13861386

0 commit comments

Comments
 (0)