Index: test/mjsunit/es7/regress/regress-634357.js |
diff --git a/test/mjsunit/regress/regress-crbug-617527.js b/test/mjsunit/es7/regress/regress-634357.js |
similarity index 51% |
copy from test/mjsunit/regress/regress-crbug-617527.js |
copy to test/mjsunit/es7/regress/regress-634357.js |
index cf4662871c4ce68e3e72bd9efa14d1f0258dd987..556d8a2b50a83380fa8632c9a04182ccc11b42df 100644 |
--- a/test/mjsunit/regress/regress-crbug-617527.js |
+++ b/test/mjsunit/es7/regress/regress-634357.js |
@@ -4,5 +4,11 @@ |
// Flags: --enable-slow-asserts |
-Object.defineProperty(Array.prototype, "1", { get: toLocaleString }); |
-assertThrows(_ => new RegExp(0, 0)); |
+array = new Array({}, {}, {}); |
+Object.defineProperty(array, 1, { |
+ get: function() { |
+ array.length = 0; |
+ array[0] = -2147483648; |
+ } |
+}); |
+result = array.includes(new Intl.Collator()); |