MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / isValidIdentifierName

Function isValidIdentifierName

ses.cjs:6061–6069  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

6059 * @param {string} name
6060 */
6061const 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

Callers 1

getScopeConstantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected