Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index 9d9fe273359e347dd7edc561a87d253b53d69876..b425a2c1862f317ac7f8f6ffe3c07cbf7ce18752 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -876,9 +876,9 @@ function DefaultString(x) { |
throw %MakeTypeError(kCannotConvertToPrimitive); |
} |
-function ToPositiveInteger(x, rangeErrorName) { |
+function ToPositiveInteger(x, rangeErrorIndex) { |
var i = TO_INTEGER_MAP_MINUS_ZERO(x); |
- if (i < 0) throw MakeRangeError(rangeErrorName); |
+ if (i < 0) throw MakeRangeError(rangeErrorIndex); |
return i; |
} |