// 11. If fullUnicode is true, let input be StringToCodePoints(S). Otherwise, let input be a List whose elements are the code units that are the elements of S.
// 12. NOTE: Each element of input is considered to be a character.
// NOTE: The following steps are take care of by regress:
//
// SKIP: 10. Let matchSucceeded be false.
// SKIP: 11. If fullUnicode is true, let input be StringToCodePoints(S). Otherwise, let input be a List whose elements are the code units that are the elements of S.
// SKIP: 12. NOTE: Each element of input is considered to be a character.
// SKIP: 13. Repeat, while matchSucceeded is false,
// 10. Let matchSucceeded be false.
// 13. Repeat, while matchSucceeded is false,
letmatch_value=loop{
// a. If lastIndex > length, then
// 13.a. If lastIndex > length, then
iflast_index>length{
// i. If global is true or sticky is true, then
ifglobal||sticky{
@ -958,36 +959,40 @@ impl RegExp {
returnOk(None);
}
// b. Let inputIndex be the index into input of the character that was obtained from element lastIndex of S.
// c. Let r be matcher(input, inputIndex).
// 13.b. Let inputIndex be the index into input of the character that was obtained from element lastIndex of S.