Replies: 2 comments 1 reply
-
You can debug it using the So if you don't want that behavior, have the property key end or a newline. It then continues parsing a property, has a missing equal sign, which is now an unrecoverable error, and you get the desired error recovery in the top-level production: https://godbolt.org/z/8jfW95bsv (change in line 24). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Minimal repro:
godbolt
Beta Was this translation helpful? Give feedback.
All reactions