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

Unified Diff: src/js/i18n.js

Issue 2143003005: [i18n] Ensure [[ToString]] conversion of time zone names. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | test/mjsunit/regress/regress-crbug-627935.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/i18n.js
diff --git a/src/js/i18n.js b/src/js/i18n.js
index 37706877f01fc55e9b0ae2858b0520813eaa2afb..2a5f477e5ad5f5c94fec1d0bbdffc51e350ead59 100644
--- a/src/js/i18n.js
+++ b/src/js/i18n.js
@@ -1785,6 +1785,9 @@ function canonicalizeTimeZoneID(tzID) {
return tzID;
}
+ // Convert zone name to string.
+ tzID = TO_STRING(tzID);
+
// Special case handling (UTC, GMT).
var upperID = %StringToUpperCase(tzID);
if (upperID === 'UTC' || upperID === 'GMT' ||
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-627935.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698