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

Function unpackError

lib/internal/debugger/inspect_client.js:46–51  ·  view source on GitHub ↗
({ code, message })

Source from the content-addressed store, hash-verified

44const WEBSOCKET_HANDSHAKE_GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
45
46function unpackError({ code, message }) {
47 const err = new ERR_DEBUGGER_ERROR(`${message}`);
48 err.code = code;
49 ErrorCaptureStackTrace(err, unpackError);
50 return err;
51}
52
53function validateHandshake(requestKey, responseKey) {
54 const expectedResponseKeyBase = requestKey + WEBSOCKET_HANDSHAKE_GUID;

Callers 1

callMethodMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…