fix a bug

This commit is contained in:
blueloveTH 2023-10-15 03:33:03 +08:00
parent 7f68155b04
commit 01fecaa352

View File

@ -122,6 +122,8 @@ struct Frame {
void _gc_mark() const { void _gc_mark() const {
PK_OBJ_MARK(_module); PK_OBJ_MARK(_module);
co->_gc_mark(); co->_gc_mark();
// Frame could be stored in a generator, so mark _callable for safety
if(_callable != nullptr) PK_OBJ_MARK(_callable);
} }
}; };