Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ createPrematureCloseError
Function
createPrematureCloseError
deps/undici/src/lib/api/api-stream.js:15–19 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
}
14
15
function
createPrematureCloseError () {
16
const
err =
new
Error(
'Premature close'
)
17
err.code =
'ERR_STREAM_PREMATURE_CLOSE'
18
return
err
19
}
20
21
function
trackWritableLifecycle (stream, callback) {
22
let
done = false
Callers
1
onClose
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected