Status: Untriaged
Owner: ----

New issue 4145 by [email protected]: Object corrupted when using numbers as property name
https://code.google.com/p/v8/issues/detail?id=4145

Version: Chrome 43.0.2357.81m
OS: Windows 8.1 x64
Architecture: x64

What steps will reproduce the problem?
1. Run the following code:
```
var setRole = function(x){
    var obj = {'1': '-', '2': '-', '3': '-', '4': '-'};
    console.log(obj);
    obj[x] = 'dog';
    console.log(obj);
}
setRole('1');
setRole('2');
setRole('3');
```

What is the expected output?
Object {1: "-", 2: "-", 3: "-", 4: "-"}
Object {1: "dog", 2: "-", 3: "-", 4: "-"}
Object {1: "-", 2: "-", 3: "-", 4: "-"}
Object {1: "-", 2: "dog", 3: "-", 4: "-"}
Object {1: "-", 2: "-", 3: "-", 4: "-"}
Object {1: "-", 2: "-", 3: "dog", 4: "-"}

What do you see instead?
Object {1: "-", 2: "-", 3: "-", 4: "-"}
Object {1: "dog", 2: "-", 3: "-", 4: "-"}
Object {1: "-", 2: "-", 3: "-", 4: "-"}
Object {1: "-", 2: "dog", 3: "-", 4: "-"}
Object {1: "-", 2: "dog", 3: "-", 4: "-"}
Object {1: "-", 2: "dog", 3: "dog", 4: "-"}

Please use labels and text to provide additional information.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to