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

Unified Diff: test/mjsunit/regress/regress-crbug-627935.js

Issue 2144263002: [i18n] Make regression test work without i18n. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_issue-cr-627935
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-627935.js
diff --git a/test/mjsunit/regress/regress-crbug-627935.js b/test/mjsunit/regress/regress-crbug-627935.js
index e958be0e302a6c436ba2a430517e029018ea54a3..fdc4d2acdec1405ba5a980ad6620b892ca03737e 100644
--- a/test/mjsunit/regress/regress-crbug-627935.js
+++ b/test/mjsunit/regress/regress-crbug-627935.js
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-assertThrows("Intl.DateTimeFormat('en-US', {timeZone: 0})", RangeError);
-assertThrows("Intl.DateTimeFormat('en-US', {timeZone: true})", RangeError);
-assertThrows("Intl.DateTimeFormat('en-US', {timeZone: null})", RangeError);
+if (this.Intl) {
+ assertThrows("Intl.DateTimeFormat('en-US', {timeZone: 0})", RangeError);
+ assertThrows("Intl.DateTimeFormat('en-US', {timeZone: true})", RangeError);
+ assertThrows("Intl.DateTimeFormat('en-US', {timeZone: null})", RangeError);
-var object = { toString: function() { return "UTC" } };
-assertDoesNotThrow("Intl.DateTimeFormat('en-US', {timeZone: object})");
+ var object = { toString: function() { return "UTC" } };
+ assertDoesNotThrow("Intl.DateTimeFormat('en-US', {timeZone: object})");
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698