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); |