(node: Node, module: SourceModule)
| 1170 | |
| 1171 | // e.g. `Array`, `Object`, `globalThis.Array`, `window.Object` |
| 1172 | const isBuiltinCtor = (node: Node, module: SourceModule): boolean => { |
| 1173 | const target = unwrapExpression(node) |
| 1174 | if (isUnboundGlobal(target, module, builtinPrototypeCtors)) return true |
| 1175 | if (target.type !== "MemberExpression") return false |
| 1176 | const name = memberNameOf(target) |
| 1177 | return ( |
| 1178 | typeof name === "string" && |
| 1179 | builtinPrototypeCtors.has(name) && |
| 1180 | isGlobalHost(target.object, module) |
| 1181 | ) |
| 1182 | } |
| 1183 | |
| 1184 | // e.g. `Object.getPrototypeOf`, `Reflect.getPrototypeOf`, `globalThis.Object.getPrototypeOf` |
| 1185 | const isGetPrototypeOfCallee = (node: Node, module: SourceModule): boolean => { |
no test coverage detected