Index: src/v8natives.js |
=================================================================== |
--- src/v8natives.js (revision 14222) |
+++ src/v8natives.js (working copy) |
@@ -950,7 +950,7 @@ |
// Step 4 - Special handling for array index. |
var index = ToUint32(p); |
- if (index == ToNumber(p) && index != 4294967295) { |
+ if (ToString(index) == p && index != 4294967295) { |
var length = obj.length; |
var length_desc = GetOwnProperty(obj, "length"); |
if ((index >= length && !length_desc.isWritable()) || |