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

Unified Diff: src/extensions/i18n/collator.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/break-iterator.js ('k') | src/extensions/i18n/date-format.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/collator.js
diff --git a/src/extensions/i18n/collator.js b/src/extensions/i18n/collator.js
index 021164ac6314f22a84d37acfe0d818c1da7224a2..3483515bef2e688e1a08b31e8e33a239e3f55f2b 100644
--- a/src/extensions/i18n/collator.js
+++ b/src/extensions/i18n/collator.js
@@ -168,7 +168,9 @@ function initializeCollator(collator, locales, options) {
},
ATTRIBUTES.DONT_ENUM
);
+%FunctionSetName(Intl.Collator.prototype.resolvedOptions, 'resolvedOptions');
%FunctionRemovePrototype(Intl.Collator.prototype.resolvedOptions);
+%SetNativeFlag(Intl.Collator.prototype.resolvedOptions);
/**
@@ -186,7 +188,9 @@ function initializeCollator(collator, locales, options) {
},
ATTRIBUTES.DONT_ENUM
);
+%FunctionSetName(Intl.Collator.supportedLocalesOf, 'supportedLocalesOf');
%FunctionRemovePrototype(Intl.Collator.supportedLocalesOf);
+%SetNativeFlag(Intl.Collator.supportedLocalesOf);
/**
« no previous file with comments | « src/extensions/i18n/break-iterator.js ('k') | src/extensions/i18n/date-format.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698