| OLD | NEW |
| (Empty) |
| 1 description( | |
| 2 'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=42
664">Yarr Interpreter is hanging in some cases of look-ahead regex patterns</a>.
It also tests some other related expressions.' | |
| 3 ); | |
| 4 | |
| 5 shouldBe('/(?:(?=x))+/.exec("x")', '[""]'); | |
| 6 shouldBe('/(?:a?)*/.exec("a")', '["a"]'); | |
| 7 shouldBe('/(a|ab)*/.exec("abab")', '["a","a"]'); | |
| 8 shouldBe('/(ab)+/.exec("abab")', '["abab","ab"]'); | |
| 9 // The following tests fail because of pcre interpreter bug(s). | |
| 10 shouldBe('/(|ab)*/.exec("ab")', '["ab","ab"]'); | |
| 11 shouldBe('/(?:(|ab)*)/.exec("ab")', '["ab","ab"]'); | |
| 12 shouldBe('/(?:(|ab)+)/.exec("ab")', '["ab","ab"]'); | |
| 13 shouldBe('/(|ab)+/.exec("abab")', '["abab","ab"]'); | |
| OLD | NEW |