mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix crash on invalid JSX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user