Chromium Code Reviews| Index: test/mjsunit/regress/regress-builtinbust-7.js |
| diff --git a/test/mjsunit/regress/regress-builtinbust-7.js b/test/mjsunit/regress/regress-builtinbust-7.js |
| index 7d883b86ceae37f5ed7db9b2f3074a37f2005782..d13c64983e031d2839b5dec9bd561e2197a0d025 100644 |
| --- a/test/mjsunit/regress/regress-builtinbust-7.js |
| +++ b/test/mjsunit/regress/regress-builtinbust-7.js |
| @@ -1,30 +1,31 @@ |
| // Copyright 2014 the V8 project authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +if (typeof Intl != "undefined") { |
|
Michael Starzinger
2014/04/30 08:50:50
nit: Can we keep an empty newline after the copyri
|
| + function overflow() { |
| + return overflow() + 1; |
| + } |
| + Object.defineProperty = overflow; |
| + assertDoesNotThrow(function() { Intl.Collator.supportedLocalesOf("en"); }); |
| -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); |
| +} |