(proxy: object)
| 238 | // Walking the stack handles a shared configuration writer created by a prior |
| 239 | // Interpreter running while a replacement Interpreter evaluates its own site. |
| 240 | const resolveStandIn = (proxy: object): [Interpreter, StandIn] | undefined => { |
| 241 | for (let i = activeInterpreters.length - 1; i >= 0; i--) { |
| 242 | const active = activeInterpreters[i] |
| 243 | const standIn = active.standIns.get(proxy) |
| 244 | if (standIn) return [active, standIn] |
| 245 | } |
| 246 | return undefined |
| 247 | } |
| 248 | |
| 249 | const requireStandIn = (proxy: object): [Interpreter, StandIn] => { |
| 250 | const resolved = resolveStandIn(proxy) |
no test coverage detected