In #7, we discuss the approach to allow traversal of strings that do not contain a valid USV sequence. Given that we are leaving the door open to access to individual components of strings in terms of codepoints for positioning purposes, perhaps we should also provide a string.current-codepoint instruction or something that would read the current codepoint (decoding surrogate pairs if appropriate on a JS system).
In #7, we discuss the approach to allow traversal of strings that do not contain a valid USV sequence. Given that we are leaving the door open to access to individual components of strings in terms of codepoints for positioning purposes, perhaps we should also provide a
string.current-codepointinstruction or something that would read the current codepoint (decoding surrogate pairs if appropriate on a JS system).