Fixed a repl bug

This commit is contained in:
2022-08-26 11:59:09 +01:00
parent ffc50ceafb
commit f36289786e
2 changed files with 7 additions and 1 deletions

View File

@@ -162,6 +162,7 @@ static int writeNodeCompoundToCache(Compiler* compiler, Node* node) {
static int writeNodeCollectionToCache(Compiler* compiler, Node* node) {
LiteralArray* store = ALLOCATE(LiteralArray, 1);
initLiteralArray(store);
//ensure each literal value is in the cache, individually
for (int i = 0; i < node->fnCollection.count; i++) {