mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
update core
This commit is contained in:
parent
de278dde52
commit
87090181f5
10
src/PikaVM.c
10
src/PikaVM.c
@ -376,16 +376,6 @@ static Arg* VM_instruction_handler_RUN(PikaObj* self, VMState* vs, char* data) {
|
||||
PikaObj* sub_locals = New_PikaObj();
|
||||
Arg* return_arg_init = NULL;
|
||||
if (NULL == method_arg) {
|
||||
uint16_t arg_input_num = VMState_getInputArgNum(vs);
|
||||
if (arg_input_num != 0) {
|
||||
VMState_setErrorCode(vs, 3);
|
||||
__platform_printf("TypeError: %s() takes no arguments\r\n",
|
||||
data);
|
||||
/* clear input args */
|
||||
for (int i = 0; i < arg_input_num; i++) {
|
||||
arg_deinit(stack_popArg(&(vs->stack)));
|
||||
}
|
||||
}
|
||||
goto init_exit;
|
||||
}
|
||||
VMState_loadArgsFromMethodArg(vs, new_obj, sub_locals->list, method_arg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user