( operand: Node, parent: Node | undefined )
| 1211 | // a read of a prototype that neither mutates nor leaks it, e.g. |
| 1212 | // `Array.prototype.slice.call(list)` or `proto === Object.prototype` |
| 1213 | const isSafePrototypeRead = ( |
| 1214 | operand: Node, |
| 1215 | parent: Node | undefined |
| 1216 | ): boolean => |
| 1217 | (parent?.type === "MemberExpression" && |
| 1218 | parent.object === operand && |
| 1219 | !isWriteTarget(parent)) || |
| 1220 | (parent?.type === "BinaryExpression" && isEqualityOperator(parent.operator)) |
| 1221 | |
| 1222 | const isPrototypeMutatorCall = ( |
| 1223 | operand: Node, |
no test coverage detected