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); |