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

Unified Diff: test/mjsunit/harmony/regexp-sticky.js

Issue 1378693004: RegExp: Fix update of lastIndex on non-global sticky (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regexp-sticky.js
diff --git a/test/mjsunit/harmony/regexp-sticky.js b/test/mjsunit/harmony/regexp-sticky.js
index bd7f646d001d3acd36a69ac9ac9c62ab9d99cf5e..971adb7fed739f73372d6c2cf49bc4954fda358d 100644
--- a/test/mjsunit/harmony/regexp-sticky.js
+++ b/test/mjsunit/harmony/regexp-sticky.js
@@ -40,13 +40,13 @@ assertTrue(!!"..foobar".match(plain));
var sticky = /foo.bar/y;
assertTrue(!!"foo*bar".match(sticky));
-assertEquals(0, sticky.lastIndex);
+assertEquals(7, sticky.lastIndex);
assertFalse(!!"..foo*bar".match(sticky));
var stickyplain = /foobar/y;
assertTrue(!!"foobar".match(stickyplain));
-assertEquals(0, stickyplain.lastIndex);
+assertEquals(6, stickyplain.lastIndex);
assertFalse(!!"..foobar".match(stickyplain));
var global = /foo.bar/g;
« no previous file with comments | « src/regexp.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698