This commit is contained in:
blueloveTH 2024-08-09 11:46:10 +08:00
parent 2eb3eabcc2
commit 3caca62f2c

View File

@ -1027,7 +1027,7 @@ FrameResult VM__run_top_frame(VM* self) {
py_TValue* tmp = c11__at(py_TValue, &frame->co->consts, byte.arg); py_TValue* tmp = c11__at(py_TValue, &frame->co->consts, byte.arg);
const char* string = py_tostr(tmp); const char* string = py_tostr(tmp);
// TODO: optimize this // TODO: optimize this
if(!py_exec(string, "<eval>", EVAL_MODE, frame->module)) goto __ERROR; if(!py_exec(string, "<f-string>", EVAL_MODE, frame->module)) goto __ERROR;
PUSH(py_retval()); PUSH(py_retval());
DISPATCH(); DISPATCH();
} }