Chromium Code Reviews

Unified Diff: src/js/datetime-format-to-parts.js

Issue 2273953003: Add support for DateTimeFormat.formatToParts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: explain why UDAT_*FILEDS cannot show up Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/heap-symbols.h ('k') | src/js/i18n.js » ('j') | src/js/i18n.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/datetime-format-to-parts.js
diff --git a/src/js/intl-extra.js b/src/js/datetime-format-to-parts.js
similarity index 55%
copy from src/js/intl-extra.js
copy to src/js/datetime-format-to-parts.js
index a4d22568b9ff14413c604199756d92190c9ca630..d940b3d35c47e78b093e383a8114a2b865a2bfbf 100644
--- a/src/js/intl-extra.js
+++ b/src/js/datetime-format-to-parts.js
@@ -3,7 +3,6 @@
// found in the LICENSE file.
(function(global, utils) {
-
"use strict";
%CheckIsBootstrapping();
@@ -11,12 +10,10 @@
var GlobalIntl = global.Intl;
var AddBoundMethod = utils.ImportNow("AddBoundMethod");
-var IntlParseDate = utils.ImportNow("IntlParseDate");
-var IntlParseNumber = utils.ImportNow("IntlParseNumber");
+var formatDateToParts = utils.ImportNow("formatDateToParts");
-AddBoundMethod(GlobalIntl.DateTimeFormat, 'v8Parse', IntlParseDate, 1,
+AddBoundMethod(GlobalIntl.DateTimeFormat, 'formatToParts', formatDateToParts, 0,
'dateformat');
-AddBoundMethod(GlobalIntl.NumberFormat, 'v8Parse', IntlParseNumber, 1,
- 'numberformat');
+
})
« no previous file with comments | « src/heap-symbols.h ('k') | src/js/i18n.js » ('j') | src/js/i18n.js » ('J')

Powered by Google App Engine