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

Function convertResultToError

lib/internal/debugger/inspect_repl.js:176–182  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

174}
175
176function convertResultToError(result) {
177 const { className, description } = result;
178 const err = new ERR_DEBUGGER_ERROR(extractErrorMessage(description));
179 err.stack = description;
180 ObjectDefineProperty(err, 'name', { __proto__: null, value: className });
181 return err;
182}
183
184class PropertyPreview {
185 constructor(attributes) {

Callers 2

fromEvalResultMethod · 0.85
setBreakpointFunction · 0.85

Calls 1

extractErrorMessageFunction · 0.85

Tested by

no test coverage detected