chakra-core / chakra-core/ChakraCore

Inconsistent output compared with other JS engines

Open
#5,511 5 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

Hello,
The following code behaves strangely (inconsistent with other engines).
```
function test() {
x = 4;
do {
var ss = 100;
function ss() {
print("in func");
}
x--;
ss = 101; }
while(x>0)
}

test();
print("BT_FLAG")
```
In ChakraCore, the output is
`BT_FLAG`
However, in V8 and SpiderMonkey, output is
`SyntaxError: redeclaration of var ss:`

BT group
2018.7.24

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.