Index: test/mjsunit/regress/regress-crbug-618788.js |
diff --git a/test/intl/regexp-prepare.js b/test/mjsunit/regress/regress-crbug-618788.js |
similarity index 51% |
copy from test/intl/regexp-prepare.js |
copy to test/mjsunit/regress/regress-crbug-618788.js |
index dec84110ed02e30bba674538534a069f7d43d39d..6e49ec2f503762b7fc5f969caf46edb510f970d8 100644 |
--- a/test/intl/regexp-prepare.js |
+++ b/test/mjsunit/regress/regress-crbug-618788.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<<<"); |
+var a = new Array(); |
+a.constructor = Int32Array; |
+a.length = 1000; // Make the length >= 1000 so UseSparseVariant returns true. |
+assertThrows(() => a.slice()); |
Camillo Bruni
2016/06/10 14:04:25
Can you convince me that we have to throw here?
No
adamk
2016/06/10 16:33:17
Oh, this is throwing for perfectly "good" reasons
Camillo Bruni
2016/06/12 12:35:45
humm, the above code works in FF though (yes my ul
adamk
2016/06/13 12:16:21
From offline discussion: I don't know why Firefox
|