... operator for json will throw an exception
- Dominant language
- TypeScript
- Stars
- 5.3k
- Forks
- 363
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 3
Description
`var x={...{xx:1}}`
Error: Line 10: Unexpected token ...
at ErrorHandler.constructError (F:\theajack\tcon\node_modules\esprima\dist\esprima.js:5012:22)
at ErrorHandler.createError (F:\theajack\tcon\node_modules\esprima\dist\esprima.js:5028:27)
at Parser.unexpectedTokenError (F:\theajack\tcon\node_modules\esprima\dist\esprima.js:1985:39)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported `var x={...{xx:1}}` input and trace the failure through the `node_modules/esprima/dist/esprima.js` stack locations shown in the report. Identify the parser entry point used by recast and add a regression test for object spread syntax; done means the input parses without the reported unexpected-token exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100