pub fn js_len(s: &str) -> usize
JS string.length: UTF-16 code units. Use it wherever upstream compares or sorts by length.
string.length