minor refactoring

This commit is contained in:
2023-08-25 23:34:21 -05:00
committed by cpunch
parent c5e4305ef8
commit 3f39211081
3 changed files with 4 additions and 3 deletions

View File

@@ -188,10 +188,10 @@ CObjObject *cosmoO_newObject(CState *state)
obj->userP = NULL; // reserved for C API
obj->userT = 0;
obj->isLocked = false;
cosmoV_pushRef(state, (CObj *)obj); // so our GC can keep track of it
cosmoT_initTable(state, &obj->tbl, ARRAY_START);
cosmoV_pop(state);
return obj;
}