Chromium Code Reviews| Index: src/regexp-delay.js |
| diff --git a/src/regexp-delay.js b/src/regexp-delay.js |
| index 0308e0200a59cca3caf741db932f1cc7ffff9fb4..098e557f4cd4cb0a19cea1b582efd3d35f08b2ce 100644 |
| --- a/src/regexp-delay.js |
| +++ b/src/regexp-delay.js |
| @@ -225,6 +225,8 @@ function RegExpTest(string) { |
| if (this.global) this.lastIndex = 0; |
| return false; |
| } |
| + |
| + if (this.global) this.lastIndex = lastMatchInfo[CAPTURE1]; |
| return true; |
| } |