chakra-core / chakra-core/ChakraCore

chakra Inconsistent execution results

Open
#6,877 2 comments 0 reactions 0 assignees View on GitHub
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

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.