chakra-core / chakra-core/ChakraCore
Inconsistent output compared with other JS engines
Open
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
Assessment
This issue has not been assessed yet.