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

Unified Diff: src/extensions/i18n/overrides.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/number-format.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/overrides.js
diff --git a/src/extensions/i18n/overrides.js b/src/extensions/i18n/overrides.js
index 58e22aa0d5dfaa5fe6bc775449e80d315c6a6fff..b2d60b3fc67d1abea69c177dca34383991ffb458 100644
--- a/src/extensions/i18n/overrides.js
+++ b/src/extensions/i18n/overrides.js
@@ -91,7 +91,9 @@ Object.defineProperty(String.prototype, 'localeCompare', {
configurable: true,
enumerable: false
});
+%FunctionSetName(String.prototype.localeCompare, 'localeCompare');
%FunctionRemovePrototype(String.prototype.localeCompare);
+%SetNativeFlag(String.prototype.localeCompare);
/**
@@ -117,7 +119,9 @@ Object.defineProperty(Number.prototype, 'toLocaleString', {
configurable: true,
enumerable: false
});
+%FunctionSetName(Number.prototype.toLocaleString, 'toLocaleString');
%FunctionRemovePrototype(Number.prototype.toLocaleString);
+%SetNativeFlag(Number.prototype.toLocaleString);
/**
@@ -161,7 +165,9 @@ Object.defineProperty(Date.prototype, 'toLocaleString', {
configurable: true,
enumerable: false
});
+%FunctionSetName(Date.prototype.toLocaleString, 'toLocaleString');
%FunctionRemovePrototype(Date.prototype.toLocaleString);
+%SetNativeFlag(Date.prototype.toLocaleString);
/**
@@ -184,7 +190,9 @@ Object.defineProperty(Date.prototype, 'toLocaleDateString', {
configurable: true,
enumerable: false
});
+%FunctionSetName(Date.prototype.toLocaleDateString, 'toLocaleDateString');
%FunctionRemovePrototype(Date.prototype.toLocaleDateString);
+%SetNativeFlag(Date.prototype.toLocaleDateString);
/**
@@ -207,4 +215,6 @@ Object.defineProperty(Date.prototype, 'toLocaleTimeString', {
configurable: true,
enumerable: false
});
+%FunctionSetName(Date.prototype.toLocaleTimeString, 'toLocaleTimeString');
%FunctionRemovePrototype(Date.prototype.toLocaleTimeString);
+%SetNativeFlag(Date.prototype.toLocaleTimeString);
« no previous file with comments | « src/extensions/i18n/number-format.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698