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

Unified Diff: test/webkit/fast/regex/alternative-length-miscalculation.js

Issue 131363008: A64: Synchronize with r15922. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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
Index: test/webkit/fast/regex/alternative-length-miscalculation.js
diff --git a/test/webkit/statement-list-register-crash.js b/test/webkit/fast/regex/alternative-length-miscalculation.js
similarity index 87%
copy from test/webkit/statement-list-register-crash.js
copy to test/webkit/fast/regex/alternative-length-miscalculation.js
index b35908e9509a01244be3499eb489ddc39526c6ba..7602d5adec08aeabf08066c0420e6e52b497a3f8 100644
--- a/test/webkit/statement-list-register-crash.js
+++ b/test/webkit/fast/regex/alternative-length-miscalculation.js
@@ -22,17 +22,12 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
description(
-'Tests that code generation of statement lists properly reference counts registers.'
+"This page tests for length miscalculations in regular expression processing."
);
-function f()
-{
- for(; ; i++) {
- a = 0;
+var re = /b|[^b]/g;
+re.lastIndex = 1;
+shouldBe("re.exec('a')", "null");
- if (1)
- return true;
- }
-}
-
-shouldBeTrue("f()");
+var re2 = /[^a]|ab/;
+shouldBe("re2.test('')", "false");

Powered by Google App Engine
This is Rietveld 408576698