(callsite)
| 37 | }; |
| 38 | |
| 39 | const readCallsitePath = (callsite) => { |
| 40 | const rawPath = |
| 41 | callsite.getFileName?.() ?? callsite.getScriptNameOrSourceURL?.(); |
| 42 | if (!rawPath) return null; |
| 43 | if (rawPath.startsWith("node:")) return null; |
| 44 | if (EVAL_FRAMES.has(rawPath)) return null; |
| 45 | return normalizePath(rawPath); |
| 46 | }; |
| 47 | |
| 48 | const isInternalCallsite = (callsite) => { |
| 49 | const functionName = callsite.getFunctionName?.(); |
no test coverage detected