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

Unified Diff: src/extensions/i18n/date-format.js

Issue 18075004: Mark i18n functions as native and set proper names (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/extensions/i18n/collator.js ('k') | src/extensions/i18n/footer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/date-format.js
diff --git a/src/extensions/i18n/date-format.js b/src/extensions/i18n/date-format.js
index a91103e9aadbbff733022c7a9cdc88491b0cb97c..04e7a7c7b9d34e50c4ec34bf2ec1e3966534c0b6 100644
--- a/src/extensions/i18n/date-format.js
+++ b/src/extensions/i18n/date-format.js
@@ -377,7 +377,10 @@ function initializeDateTimeFormat(dateFormat, locales, options) {
},
ATTRIBUTES.DONT_ENUM
);
+%FunctionSetName(Intl.DateTimeFormat.prototype.resolvedOptions,
+ 'resolvedOptions');
%FunctionRemovePrototype(Intl.DateTimeFormat.prototype.resolvedOptions);
+%SetNativeFlag(Intl.DateTimeFormat.prototype.resolvedOptions);
/**
@@ -395,7 +398,9 @@ function initializeDateTimeFormat(dateFormat, locales, options) {
},
ATTRIBUTES.DONT_ENUM
);
+%FunctionSetName(Intl.DateTimeFormat.supportedLocalesOf, 'supportedLocalesOf');
%FunctionRemovePrototype(Intl.DateTimeFormat.supportedLocalesOf);
+%SetNativeFlag(Intl.DateTimeFormat.supportedLocalesOf);
/**
« no previous file with comments | « src/extensions/i18n/collator.js ('k') | src/extensions/i18n/footer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698