Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: src/v8natives.js

Issue 1096243003: Migrate error messages, part 5 (array.js and i18n.js). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/uri.js ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/uri.js ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698