popcodeorg / popcodeorg/popcode
Duplicate variable declarations do not generate an error
Open
Nobody has claimed this yet.
bug
help wanted
- Dominant language
- JavaScript
- Stars
- 191
- Forks
- 143
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 5
Description
The following fairly common mistakes should generate an error:
- Duplicate global variable declarations
- Duplicate local variable declarations
- Local variable declaration shadowing function parameter
This snapshot contains all three issues, none of which generate an error in Popcode.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Open the linked Popcode snapshot and reproduce the three cases: duplicate global declarations, duplicate local declarations, and a local declaration shadowing a function parameter. Trace the editor's JavaScript error-reporting path and make each case generate an error, then verify all three behaviors in Popcode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100