export default async ({negotiateProtocol}) => {const protocol = negotiateProtocol(['ava-4']);protocol.ready();crash(protocol.subscribe());};async function crash(messages) {for await (const message of messages) { // eslint-disable-line no-unreachable-loopthrow new Error(message.data);}}