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

Unified Diff: src/extensions/i18n/header.js

Issue 23414008: Revert "Snapshot i18n Javascript code" and "Fix mjsunit/debug-script after r16298". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/globals.js ('k') | src/extensions/i18n/i18n-extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/header.js
diff --git a/test/intl/date-format/utils.js b/src/extensions/i18n/header.js
similarity index 82%
copy from test/intl/date-format/utils.js
copy to src/extensions/i18n/header.js
index 535de15e9a2b4298cfc13d080b9fe620588f5b8e..1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622 100644
--- a/test/intl/date-format/utils.js
+++ b/src/extensions/i18n/header.js
@@ -24,13 +24,18 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// limitations under the License.
-// Utility methods for date testing.
+// ECMAScript 402 API implementation is broken into separate files for
+// each service. The build system combines them together into one
+// Intl namespace.
/**
- * Returns date with timezone info forced into PDT.
+ * Intl object is a single object that has some named properties,
+ * all of which are constructors.
*/
-function usePDT(dateString) {
- var removedTZ = dateString.replace(/(\+|-)\d{4}/, '-0007');
- return removedTZ.replace(/\(.*?\)/, '(PDT)');
-}
+var Intl = (function() {
+
+'use strict';
+
+var Intl = {};
« no previous file with comments | « src/extensions/i18n/globals.js ('k') | src/extensions/i18n/i18n-extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698