chakra-core / chakra-core/ChakraCore
Functions evaluated in strict mode in console does not prevent implicit variables from being created in Edge
Open
Bug
Severity: 3
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Evaluating
```js
(function(){"use strict";aa=233})()
```
in Edge causes a global variable `aa` to be created, instead of an error being thrown.
User agent:
```
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
```
Contributor guide
Assessment
This issue has not been assessed yet.