(response)
| 648 | } |
| 649 | |
| 650 | #unwrapMessage(response) { |
| 651 | if (response.message.status === 'never-settle') { |
| 652 | return new Promise(() => {}); |
| 653 | } |
| 654 | const { status, body } = response.message; |
| 655 | if (status === 'error') { |
| 656 | if (body == null || typeof body !== 'object') { throw body; } |
| 657 | if (body.serializationFailed || body.serialized == null) { |
| 658 | throw new ERR_WORKER_UNSERIALIZABLE_ERROR(); |
| 659 | } |
| 660 | |
| 661 | // eslint-disable-next-line no-restricted-syntax |
| 662 | throw deserializeError(body.serialized); |
| 663 | } else { |
| 664 | return body; |
| 665 | } |
| 666 | } |
| 667 | } |
| 668 | ObjectSetPrototypeOf(AsyncLoaderHookWorker.prototype, null); |
| 669 |
no test coverage detected