fix: empty file yields an error

This commit is contained in:
2024-12-25 02:53:53 +02:00
parent c3432306f7
commit a705bf296e

View File

@@ -233,6 +233,7 @@ public final class JavaScript {
int i = 0;
while (true) {
i += Parsing.skipEmpty(src, i);
if (i >= src.size()) break;
var res = parseStatement(src, i);