CObjMethod refactor

This commit is contained in:
2020-11-17 15:07:56 -06:00
parent e6a377dfd0
commit aaed92424f
5 changed files with 40 additions and 36 deletions

View File

@@ -111,7 +111,7 @@ void blackenObject(CState *state, CObj *obj) {
}
case COBJ_METHOD: {
CObjMethod *method = (CObjMethod*)obj;
markObject(state, (CObj*)method->closure);
markValue(state, method->func);
markObject(state, (CObj*)method->obj);
break;
}