Added object.* library; added cosmoO_isDescendant to cobj.[ch]

The object library includes:
- __proto getter and setter tables (might make an option to lock __proto in the future)
- ischild()

cosmoB_loadDebug was renamed to cosmoB_loadVM and now only loads the VM library
This commit is contained in:
2021-02-03 13:43:26 -06:00
parent 88d41d7db8
commit 2f9ff08cd3
6 changed files with 124 additions and 64 deletions

View File

@@ -1433,7 +1433,7 @@ static void forLoop(CParseState *pstate) {
// parse initializer
if (!match(pstate, TOKEN_EOS)) {
expressionStatement(pstate);
consume(pstate, TOKEN_EOS, "Expected ';' after initializer!");
consume(pstate, TOKEN_EOS, "Expected ';' after initializer");
}
// start loop scope