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

Unified Diff: test/mjsunit/harmony/unicode-regexp-unanchored-advance.js

Issue 1676293003: [regexp] simplify unanchored advance for unicode regexps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/regexp/jsregexp.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/unicode-regexp-unanchored-advance.js
diff --git a/test/mjsunit/regress/regress-crbug-570241.js b/test/mjsunit/harmony/unicode-regexp-unanchored-advance.js
similarity index 56%
copy from test/mjsunit/regress/regress-crbug-570241.js
copy to test/mjsunit/harmony/unicode-regexp-unanchored-advance.js
index 4fecba57b5a96c77852e9b0b97ff8d2228957e01..e9871f1163cb316c22ca37e266d33a61fc92af4b 100644
--- a/test/mjsunit/regress/regress-crbug-570241.js
+++ b/test/mjsunit/harmony/unicode-regexp-unanchored-advance.js
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-regexp-lookbehind
+// Flags: --harmony-unicode-regexps
-assertTrue(/(?<=12345123451234512345)/.test("12345123451234512345"));
+var s = "a".repeat(1E8) + "\u1234";
erikcorry 2016/02/09 08:04:47 I think this will time out on ARM.
+assertEquals(["\u1234", "\u1234"], /(\u1234)/u.exec(s));
« no previous file with comments | « src/regexp/jsregexp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698