( key: string, literal: Node, module: SourceModule, reads: ThisReads, isDirectValidator = false )
| 1096 | // through `this`, which no reference to the object shows: by a function that |
| 1097 | // can be bound to it, as one in its own literal, or one it holds |
| 1098 | export const mayReadThrough = ( |
| 1099 | key: string, |
| 1100 | literal: Node, |
| 1101 | module: SourceModule, |
| 1102 | reads: ThisReads, |
| 1103 | isDirectValidator = false |
| 1104 | ): boolean => { |
| 1105 | const own = reads.byLiteral.get(literal) |
| 1106 | if (own && (own.any || own.keys.has(key))) return true |
| 1107 | if (!reads.escaped.any && !reads.escaped.keys.has(key)) return false |
| 1108 | if ( |
| 1109 | !reads.patchesBuiltins && |
| 1110 | literal.type === "ObjectExpression" && |
| 1111 | receivesNoEscapedThis(literal, module, isDirectValidator ? key : undefined) |
| 1112 | ) |
| 1113 | return false |
| 1114 | return true |
| 1115 | } |
| 1116 | |
| 1117 | export const globalNameOf = ( |
| 1118 | callee: Node, |
no test coverage detected