MCPcopy Index your code
hub / github.com/nodejs/node / isError

Function isError

test/parallel/test-diagnostics-channel-http.js:13–13  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

11const isOutgoingMessage = (object) => object instanceof http.OutgoingMessage;
12const isNetSocket = (socket) => socket instanceof net.Socket;
13const isError = (error) => error instanceof Error;
14
15dc.subscribe('http.client.request.start', common.mustCall(({ request }) => {
16 assert.strictEqual(isOutgoingMessage(request), true);

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…