[bugfix] propagate errors through the VM

This commit is contained in:
Yuichi Nishiwaki 2014-03-16 23:32:28 +09:00
parent 00d92c79bf
commit 04375c3056
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value argv)
pic->jmp = prev_jmp;
if (pic->err) {
return pic_undef_value();
longjmp(*pic->jmp, 1);
}
#if VM_DEBUG