(code, astral)
| 17786 | // Test whether a given character code starts an identifier. |
| 17787 | |
| 17788 | function isIdentifierStart(code, astral) { |
| 17789 | if (code < 65) { return code === 36 } |
| 17790 | if (code < 91) { return true } |
| 17791 | if (code < 97) { return code === 95 } |
| 17792 | if (code < 123) { return true } |
| 17793 | if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) } |
| 17794 | if (astral === false) { return false } |
| 17795 | return isInAstralSet(code, astralIdentifierStartCodes) |
| 17796 | } |
| 17797 | |
| 17798 | // Test whether a given character is part of an identifier. |
| 17799 |
no test coverage detected