| OLD | NEW |
| (Empty) |
| 1 Test for regression against Wrong result in case of non-iterative matching of su
bpatterns in non-greedy cases in YARR Interpreter | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS "a".match(/(a)??/) is ["", undefined] | |
| 7 PASS "b".match(/(a)??/) is ["", undefined] | |
| 8 PASS "ab".match(/(a)??b/) is ["ab", "a"] | |
| 9 PASS "aaab".match(/(a+)??b/) is ["aaab", "aaa"] | |
| 10 PASS "abbc".match(/(a)??(b+)??c/) is ["abbc", "a", "bb"] | |
| 11 PASS "ac".match(/(a)??(b)??c/) is ["ac", "a", undefined] | |
| 12 PASS "abc".match(/(a(b)??)??c/) is ["abc", "ab", "b"] | |
| 13 PASS "ac".match(/(a(b)??)??c/) is ["ac", "a", undefined] | |
| 14 PASS successfullyParsed is true | |
| 15 | |
| 16 TEST COMPLETE | |
| 17 | |
| OLD | NEW |