added network builtins and fixed a bug in OPCODE_SELECT

This commit is contained in:
cozis
2021-12-04 12:36:47 +01:00
parent 3b6e631a5b
commit 4cf95336e8
7 changed files with 265 additions and 13 deletions
+6 -1
View File
@@ -713,7 +713,12 @@ static _Bool step(Runtime *runtime, Error *error)
Object *val = Object_Select(col, key, runtime->heap, error);
if(val == NULL)
return 0;
{
val = Object_NewNone(runtime->heap, error);
if(val == NULL)
return 0;
}
if(!Runtime_Push(runtime, error, val))
return 0;