mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
use vs->locals in DEF instruction
This commit is contained in:
parent
f3a973c8df
commit
9a6089cbcb
@ -540,7 +540,7 @@ static Arg* VM_instruction_handler_DEF(PikaObj* self, VMState* vs, char* data) {
|
||||
while (1) {
|
||||
if ((methodPtr[0] == 'B') &&
|
||||
(methodPtr[1] - '0' == thisBlockDeepth + 1)) {
|
||||
class_defineMethod(self, data, (Method)methodPtr);
|
||||
class_defineMethod(vs->locals, data, (Method)methodPtr);
|
||||
break;
|
||||
}
|
||||
offset += __gotoNextLine(methodPtr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user