| OLD | NEW |
| (Empty) |
| 1 description( | |
| 2 'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=39
289">Wrong result in case of non-iterative matching of subpatterns in non-greedy
cases in YARR Interpreter</a>' | |
| 3 ); | |
| 4 | |
| 5 shouldBe('"a".match(/(a)??/)', '["", undefined]'); | |
| 6 shouldBe('"b".match(/(a)??/)', '["", undefined]'); | |
| 7 shouldBe('"ab".match(/(a)??b/)', '["ab", "a"]'); | |
| 8 shouldBe('"aaab".match(/(a+)??b/)', '["aaab", "aaa"]'); | |
| 9 shouldBe('"abbc".match(/(a)??(b+)??c/)', '["abbc", "a", "bb"]'); | |
| 10 shouldBe('"ac".match(/(a)??(b)??c/)', '["ac", "a", undefined]'); | |
| 11 shouldBe('"abc".match(/(a(b)??)??c/)', '["abc", "ab", "b"]'); | |
| 12 shouldBe('"ac".match(/(a(b)??)??c/)', '["ac", "a", undefined]'); | |
| OLD | NEW |