(str)
| 84 | ); |
| 85 | |
| 86 | function isIdentifier(str) { |
| 87 | if (str === '') { |
| 88 | return false; |
| 89 | } |
| 90 | const first = StringPrototypeCodePointAt(str, 0); |
| 91 | if (!isIdentifierStart(first)) { |
| 92 | return false; |
| 93 | } |
| 94 | const firstLen = first > 0xffff ? 2 : 1; |
| 95 | for (let i = firstLen; i < str.length; i += 1) { |
| 96 | const cp = StringPrototypeCodePointAt(str, i); |
| 97 | if (!isIdentifierChar(cp)) { |
| 98 | return false; |
| 99 | } |
| 100 | if (cp > 0xffff) { |
| 101 | i += 1; |
| 102 | } |
| 103 | } |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | function isNotLegacyObjectPrototypeMethod(str) { |
| 108 | return isIdentifier(str) && |
no test coverage detected