Index: src/harmony-array.js |
diff --git a/src/harmony-array.js b/src/harmony-array.js |
index 705adcd06a30339082d8138c0d3bb302904276d5..50da5f9b1f961fd403aa2ea2a396946ea980607d 100644 |
--- a/src/harmony-array.js |
+++ b/src/harmony-array.js |
@@ -173,7 +173,7 @@ function ArrayFill(value, start, end) { |
CHECK_OBJECT_COERCIBLE(this, "Array.prototype.fill"); |
var array = TO_OBJECT(this); |
- var length = TO_UINT32(array.length); |
+ var length = TO_LENGTH_OR_UINT32(array.length); |
return InnerArrayFill(value, start, end, array, length); |
} |