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

Unified Diff: test/intl/regress-4870.js

Issue 1986763003: Use stricter type checks in Intl's bound methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/js/intl-extra.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/intl/regress-4870.js
diff --git a/test/intl/regexp-prepare.js b/test/intl/regress-4870.js
similarity index 51%
copy from test/intl/regexp-prepare.js
copy to test/intl/regress-4870.js
index dec84110ed02e30bba674538534a069f7d43d39d..72c095eccd8f6b27384fa0f4f7937e56a668063b 100644
--- a/test/intl/regexp-prepare.js
+++ b/test/intl/regress-4870.js
@@ -2,4 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)/.exec(">>>abcdefghij<<<");
+assertThrows(() =>
+ Object.getOwnPropertyDescriptor(Intl.Collator.prototype, 'compare')
+ .get.call(new Intl.DateTimeFormat())('a', 'b'),
+ TypeError);
« no previous file with comments | « src/js/intl-extra.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698