chakra-core / chakra-core/ChakraCore
Declarations (other than var) within the same block should throw in all modes
Open
Bug
Severity: 3
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Given something of the form:
```js
{
function foo() { }
function foo() { }
}
```
where either function might be a regular function, generator, async function, or class:
Expected: error (static semantics contains duplicate lexical declaration)
Actual: no error
Contributor guide
Assessment
This issue has not been assessed yet.