Skip to content

Commit c4723d4

Browse files
committed
Fix: crash on a hole of arrays
1 parent 6e42bae commit c4723d4

File tree

5 files changed

+1164
-1
lines changed

5 files changed

+1164
-1
lines changed

src/script/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ export function parseVForExpression(code: string, locationCalculator: LocationCa
273273

274274
// Modify parent.
275275
for (const l of left) {
276-
l.parent = expression
276+
if (l != null) {
277+
l.parent = expression
278+
}
277279
}
278280
right.parent = expression
279281

0 commit comments

Comments
 (0)