diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es6/regexp-sticky.js')
-rw-r--r-- | deps/v8/test/mjsunit/es6/regexp-sticky.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/es6/regexp-sticky.js b/deps/v8/test/mjsunit/es6/regexp-sticky.js index df39763694..46006fb4e0 100644 --- a/deps/v8/test/mjsunit/es6/regexp-sticky.js +++ b/deps/v8/test/mjsunit/es6/regexp-sticky.js @@ -43,9 +43,11 @@ assertFalse(!!"..foo*bar".match(sticky)); var stickyplain = /foobar/y; -assertTrue(!!"foobar".match(stickyplain)); +assertTrue(!!"foobarfoobar".match(stickyplain)); assertEquals(6, stickyplain.lastIndex); -assertFalse(!!"..foobar".match(stickyplain)); +assertTrue(!!"foobarfoobar".match(stickyplain)); +assertEquals(12, stickyplain.lastIndex); +assertFalse(!!"..foobarfoobar".match(stickyplain)); var global = /foo.bar/g; |