Index: src/js/runtime.js |
diff --git a/src/js/runtime.js b/src/js/runtime.js |
index 54fe40d45f89b9135a4a6551086f6ecbf49dc721..5d02bd18ff66fe1fe9d45d99ecc694e020788312 100644 |
--- a/src/js/runtime.js |
+++ b/src/js/runtime.js |
@@ -210,7 +210,7 @@ function ConcatIterableToArray(target, iterable) { |
// argument might not be less than 2**32-1. ES2015 ToLength semantics mean that |
// this is a concern at basically all callsites. |
function AddIndexedProperty(obj, index, value) { |
- if (index === TO_UINT32(index)) { |
+ if (index < kMaxUint32) { |
Jakob Kummerow
2015/10/30 09:38:05
How do you guarantee that index >= 0?
|
%AddElement(obj, index, value); |
} else { |
%AddNamedProperty(obj, TO_STRING(index), value, NONE); |