chakra-core / chakra-core/ChakraCore
Incorrect iteration order of deleted and re-assigned properties.
Open
Bug
Compatibility
ECMAScript Spec
Severity: 2
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Using chakracore 1.7.1.0 of chakranode I noticed and interop issue when a unit test in my project failed.
```js
o = {}
o.b = 2
o.a = 1
delete o.b
o.b = 2
Object.keys(o) // produces [ 'b', 'a' ] while v8 produces ['a', 'b']
```
The example uses `Object.keys` but `for-in` and friends will produce a similar result.
Contributor guide
Assessment
This issue has not been assessed yet.