(name)
| 6059 | * @param {string} name |
| 6060 | */ |
| 6061 | const isValidIdentifierName= (name)=>{ |
| 6062 | // Ensure we have a valid identifier. We use regexpTest rather than |
| 6063 | // /../.test() to guard against the case where RegExp has been poisoned. |
| 6064 | return( |
| 6065 | name!== 'eval'&& |
| 6066 | !arrayIncludes(keywords, name)&& |
| 6067 | regexpTest(identifierPattern, name)); |
| 6068 | |
| 6069 | }; |
| 6070 | |
| 6071 | /* |
| 6072 | * isImmutableDataProperty |