()
| 311 | } |
| 312 | |
| 313 | getEntry(): ImportTableEntry { |
| 314 | if (this.entry) { |
| 315 | return this.entry; |
| 316 | } else { |
| 317 | // Shouldn't get here in practice since the holding stub should have replaced the hook when |
| 318 | // disposed. |
| 319 | throw new Error("This RpcImportHook was already disposed."); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | // ------------------------------------------------------------------------------------- |
| 324 | // implements StubHook |