chakra-core / chakra-core/ChakraCore

Lexical declaration of `undefined` in global scope should result in SyntaxError

Open
#3,373 0 comments 0 reactions 1 assignee Claimed by @atulkatti View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.