chakra-core / chakra-core/ChakraCore
chakra Inconsistent execution results
Open
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
###### Version
chakra-1.11.24.0, 1.13.0.0-beta
###### Test case
```js
function foo(){
const b = [{name:"bob",age:25}];
const o = {"__proto__":[[]], "":""};
for (const p in o) {
var a = b[p];
o.__proto__ = {};
}
return JSON.stringify(a)
}
print(foo())
```
###### Execution steps
.ch Testcase.js
###### Output
```
{"name":"bob","age":25}
```
###### Expected result
undefined
###### Description
The correct output of the test case should be `undefined` while chakra yields {"name":"bob","age":25} . I think it might be an issue of chakra.
Contributor guide
Assessment
This issue has not been assessed yet.