Index: src/js/runtime.js |
diff --git a/src/js/runtime.js b/src/js/runtime.js |
index a6a0b4df91409106c74769998c7e65398f2a18d9..23c329651a3e47b5f3ab85ebe20e6b28a96b1cd6 100644 |
--- a/src/js/runtime.js |
+++ b/src/js/runtime.js |
@@ -44,7 +44,7 @@ utils.ImportFromExperimental(function(from) { |
function ToPositiveInteger(x, rangeErrorIndex) { |
- var i = TO_INTEGER_MAP_MINUS_ZERO(x); |
+ var i = TO_INTEGER(x) + 0; |
if (i < 0) throw MakeRangeError(rangeErrorIndex); |
return i; |
} |