(hook: StubHook)
| 634 | } |
| 635 | |
| 636 | getImport(hook: StubHook): ImportId | undefined { |
| 637 | if (hook instanceof RpcImportHook && hook.entry && hook.entry.session === this) { |
| 638 | return hook.entry.importId; |
| 639 | } else { |
| 640 | return undefined; |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | importStub(idx: ImportId): RpcImportHook { |
| 645 | if (this.abortReason) throw this.abortReason; |