(input, pos, f, s)
| 406 | * @returns {boolean} true, if the two code points form a valid escape |
| 407 | */ |
| 408 | const _ifTwoCodePointsAreValidEscape = (input, pos, f, s) => { |
| 409 | const first = f || input.charCodeAt(pos - 1); |
| 410 | const second = s || input.charCodeAt(pos); |
| 411 | if (first !== CC_REVERSE_SOLIDUS) return false; |
| 412 | if (_isNewline(second)) return false; |
| 413 | return true; |
| 414 | }; |
| 415 | |
| 416 | /** |
| 417 | * Spec: "three code points would start an ident sequence". |
no test coverage detected