chakra-core / chakra-core/ChakraCore

Functions evaluated in strict mode in console does not prevent implicit variables from being created in Edge

Open
#5,115 24 comments 0 reactions 0 assignees View on GitHub
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

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.