Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 41453d0b5364660c24f8cd9a51c93a9e71de6ffd..8080e12753df3bb8ac7b9b585d36028fc094d94b 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1538,9 +1538,7 @@ function NumberToStringJS(radix) { |
// Convert the radix to an integer and check the range. |
radix = TO_INTEGER(radix); |
- if (radix < 2 || radix > 36) { |
- throw new $RangeError('toString() radix argument must be between 2 and 36'); |
- } |
+ if (radix < 2 || radix > 36) throw MakeRangeError(kToRadixFormatRange); |
// Convert the number to a string in the given radix. |
return %NumberToRadixString(number, radix); |
} |