chakra-core / chakra-core/ChakraCore

Incorrect iteration order of deleted and re-assigned properties.

Open
#3,505 6 comments 0 reactions 1 assignee Assigned to @pleath View on GitHub
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

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.