Update codeobject.h

Update codeobject.h
This commit is contained in:
blueloveTH 2022-11-13 16:22:43 +08:00
parent 53b33eb2f2
commit 32f0525484

View File

@ -121,8 +121,7 @@ public:
}
_Str errorSnapshot(){
int line = -1;
if(!isCodeEnd()) line = code->co_code[ip-1].line;
int line = code->co_code[ip-1].line;
return code->src->snapshot(line);
}