Fix warning when returning from vm_loop.

Related issue: #930

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg 2016-03-03 02:53:54 -08:00
parent afa7b78b45
commit 73dcf689d2

View File

@ -1348,7 +1348,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
frame_ctx_p->byte_code_p = byte_code_start_p;
frame_ctx_p->stack_top_p = stack_top_p;
frame_ctx_p->call_block_result = block_result;
return;
return ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED);
}
frame_ctx_p->call_operation = VM_NO_EXEC_OP;
@ -1380,7 +1380,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
frame_ctx_p->byte_code_p = byte_code_start_p;
frame_ctx_p->stack_top_p = stack_top_p;
frame_ctx_p->call_block_result = block_result;
return;
return ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED);
}
frame_ctx_p->call_operation = VM_NO_EXEC_OP;