MCPcopy
hub / github.com/vercel/next.js / onExit

Function onExit

test/e2e/next-analyze/next-analyze.test.ts:120–130  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

118 }
119
120 function onExit(code: number) {
121 clearTimeout(timeout)
122 process.stdout.off('data', onStdout)
123 process.off('error', onError)
124 process.off('exit', onExit)
125 reject(
126 new Error(
127 `Server process exited with code ${code} before URL was emitted`
128 )
129 )
130 }
131
132 process.stdout.on('data', onStdout)
133 process.on('error', onError)

Callers

nothing calls this directly

Calls 3

clearTimeoutFunction · 0.50
rejectFunction · 0.50
offMethod · 0.45

Tested by

no test coverage detected