fix: empty file yields an error
This commit is contained in:
parent
c3432306f7
commit
a705bf296e
@ -233,6 +233,7 @@ public final class JavaScript {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
i += Parsing.skipEmpty(src, i);
|
||||||
if (i >= src.size()) break;
|
if (i >= src.size()) break;
|
||||||
|
|
||||||
var res = parseStatement(src, i);
|
var res = parseStatement(src, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user