Fix crash on invalid JSX

This commit is contained in:
Jarred Sumner
2022-08-20 04:42:34 -07:00
parent 07e1a158e9
commit f4419bd240

View File

@@ -12338,7 +12338,7 @@ fn NewParser_(
children.append(child) catch unreachable;
} else {
children.append(p.parseJSXElement(less_than_loc) catch unreachable) catch unreachable;
children.append(try p.parseJSXElement(less_than_loc)) catch unreachable;
}
// The call to parseJSXElement() above doesn't consume the last