leave null expressions out of AsyncEmbeddedScript cache

This commit is contained in:
2023-07-17 13:08:21 -06:00
parent c64136721c
commit 9a7814c2b2

View File

@@ -317,7 +317,7 @@ class AsyncEmbeddedScript {
var exprString = Reader.toString(nextExp.def);
var fieldCount = k.fieldList.length;
var expr = Kiss.readerExpToHaxeExpr(nextExp, k);
if (Kiss.isEmpty(expr))
if (expr == null || Kiss.isEmpty(expr))
return;
expr = macro { if (printCurrentInstruction) Prelude.print($v{exprString}); $expr; };
expr = expr.expr.withMacroPosOf(nextExp);