Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 180c05e1ebc81c4385dba9e6a347f0863ee93d47..fb8435d91b3b6abf1aaf26e43d31705f5a0a70b2 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1079,7 +1079,7 @@ function ToNameArray(obj, trap, includeSymbols) { |
if (%HasOwnProperty(names, s)) { |
throw MakeTypeError(kProxyRepeatedPropName, trap, s); |
} |
- array[index] = s; |
+ array[realLength] = s; |
++realLength; |
names[s] = 0; |
} |