chakra-core / chakra-core/ChakraCore
Lexical declaration of `undefined` in global scope should result in SyntaxError
Open
Bug
Severity: 3
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
It is presently a reference error. Other identifier names appear to throw the proper error.
```js
let undefined;
```
Actual: ReferenceError
Expected: SyntaxError (normal let-const redecl error)
Contributor guide
Assessment
This issue has not been assessed yet.