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

Unified Diff: src/extensions/i18n/number-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/i18n-utils.js ('k') | src/extensions/i18n/overrides.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/number-format.js
diff --git a/src/extensions/i18n/number-format.js b/src/extensions/i18n/number-format.js
index 5f5285da9a67b0cb0a829980e0e04910079ec5fe..1cd3db13554b245a4cdde7e47010df513b737f1e 100644
--- a/src/extensions/i18n/number-format.js
+++ b/src/extensions/i18n/number-format.js
@@ -237,7 +237,10 @@ function initializeNumberFormat(numberFormat, locales, options) {
},
ATTRIBUTES.DONT_ENUM
);
+%FunctionSetName(Intl.NumberFormat.prototype.resolvedOptions,
+ 'resolvedOptions');
%FunctionRemovePrototype(Intl.NumberFormat.prototype.resolvedOptions);
+%SetNativeFlag(Intl.NumberFormat.prototype.resolvedOptions);
/**
@@ -255,7 +258,9 @@ function initializeNumberFormat(numberFormat, locales, options) {
},
ATTRIBUTES.DONT_ENUM
);
+%FunctionSetName(Intl.NumberFormat.supportedLocalesOf, 'supportedLocalesOf');
%FunctionRemovePrototype(Intl.NumberFormat.supportedLocalesOf);
+%SetNativeFlag(Intl.NumberFormat.supportedLocalesOf);
/**
« no previous file with comments | « src/extensions/i18n/i18n-utils.js ('k') | src/extensions/i18n/overrides.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698