3 comments (3 comments)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript1,226 forks (1,226 forks)batch import
BugSeverity: 3help wanted
Repository metrics
- Stars
- 9,256 stars (9,256 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
{ var x; let x; }
Expected: SyntaxError, duplicate delcarations.
Actual: No error, var is hoisted out.
Contributor guide
- Research direction
- Investigate the parser in ChakraCore where var and let declarations are handled. Look for the block scope processing and ensure that redeclaration of var by let within the same block triggers a SyntaxError.
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Prerequisites
- JavaScriptC++