the first callinfo's argc is 1
This commit is contained in:
parent
a0e2089e56
commit
3d523a8081
2
src/vm.c
2
src/vm.c
|
@ -494,7 +494,7 @@ pic_run(pic_state *pic, struct pic_proc *proc, pic_value args)
|
||||||
|
|
||||||
/* adjust call frame */
|
/* adjust call frame */
|
||||||
pic->sp[0] = pic_obj_value(proc);
|
pic->sp[0] = pic_obj_value(proc);
|
||||||
pic->ci->argc = 0;
|
pic->ci->argc = 1;
|
||||||
pic->ci->pc = NULL;
|
pic->ci->pc = NULL;
|
||||||
pic->ci->sp = NULL;
|
pic->ci->sp = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue