Revision: 21078
Author: [email protected]
Date: Wed Apr 30 09:04:17 2014 UTC
Log: A new test needs to exit early on non-internationalization builds.
[email protected]
Review URL: https://codereview.chromium.org/265513003
http://code.google.com/p/v8/source/detail?r=21078
Modified:
/branches/bleeding_edge/test/mjsunit/regress/regress-builtinbust-7.js
=======================================
--- /branches/bleeding_edge/test/mjsunit/regress/regress-builtinbust-7.js
Wed Apr 30 07:36:12 2014 UTC
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-builtinbust-7.js
Wed Apr 30 09:04:17 2014 UTC
@@ -2,29 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function overflow() {
- return overflow() + 1;
-}
-Object.defineProperty = overflow;
-assertDoesNotThrow(function() { Intl.Collator.supportedLocalesOf("en"); });
+if ("Intl" in this) {
+ function overflow() {
+ return overflow() + 1;
+ }
+ Object.defineProperty = overflow;
+ assertDoesNotThrow(function() { Intl.Collator.supportedLocalesOf("en");
});
-var date = new Date(Date.UTC(2004, 12, 25, 3, 0, 0));
-var options = {
- weekday: "long",
- year: "numeric",
- month: "long",
- day: "numeric"
-};
+ var date = new Date(Date.UTC(2004, 12, 25, 3, 0, 0));
+ var options = {
+ weekday: "long",
+ year: "numeric",
+ month: "long",
+ day: "numeric"
+ };
-Object.apply = overflow;
-assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", options);
});
+ Object.apply = overflow;
+ assertDoesNotThrow(function() { date.toLocaleDateString("de-DE",
options); });
-var options_incomplete = {};
-assertDoesNotThrow(function() {
- date.toLocaleDateString("de-DE", options_incomplete);
-});
-assertTrue(options_incomplete.hasOwnProperty("year"));
+ var options_incomplete = {};
+ assertDoesNotThrow(function() {
+ date.toLocaleDateString("de-DE", options_incomplete);
+ });
+ assertTrue(options_incomplete.hasOwnProperty("year"));
-assertDoesNotThrow(function() { date.toLocaleDateString("de-DE",
undefined); });
-assertDoesNotThrow(function() { date.toLocaleDateString("de-DE"); });
-assertThrows(function() { date.toLocaleDateString("de-DE", null); },
TypeError);
+ assertDoesNotThrow(function() { date.toLocaleDateString("de-DE",
undefined); });
+ assertDoesNotThrow(function() { date.toLocaleDateString("de-DE"); });
+ assertThrows(function() { date.toLocaleDateString("de-DE", null); },
TypeError);
+}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.