popcodeorg / popcodeorg/popcode

Duplicate variable declarations do not generate an error

Open
#1,445 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.