SyntaxError: catch variable already exists
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c, javascript
- Domain
- compilers
Research direction
Start by running the reported mqjs --eval command and compare its behavior with the expected handling of repeated catch-variable names. Trace the --eval entry point into the parser or syntax-error handling; done means the behavior is consistent with the intended JavaScript semantics and the regression is covered by a test.
Written by the indexing model from the issue text.
Description
This seems unexpected to me. Is it?
mqjs --eval "try {} catch (A) {}; try {} catch (A) {}"
results in
SyntaxError: catch variable already exists
at <cmdline>:1:36
- Dominant language
- C
- Stars
- 6.2k
- Forks
- 251
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bellard/mquickjs
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
-
Version NumberingOpen
Difficulty 1/5 Under an hour Newbie friendliness 55/100
All issues in bellard/mquickjs
Similar issues
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JulianKemmerer/PipelineC#409 ·
-
Linux build fails without libspeechd-dev, which INSTALL.md doesn't list and CMake reports as foundOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100