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

Function captureErrorCalculationState

test/fixtures/snapshot/typescript.js:64739–64747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64737 relatedInfo = saved.relatedInfo;
64738 }
64739 function captureErrorCalculationState() {
64740 return {
64741 errorInfo: errorInfo,
64742 lastSkippedInfo: lastSkippedInfo,
64743 incompatibleStack: incompatibleStack === null || incompatibleStack === void 0 ? void 0 : incompatibleStack.slice(),
64744 overrideNextErrorInfo: overrideNextErrorInfo,
64745 relatedInfo: relatedInfo === null || relatedInfo === void 0 ? void 0 : relatedInfo.slice(),
64746 };
64747 }
64748 function reportIncompatibleError(message, arg0, arg1, arg2, arg3) {
64749 overrideNextErrorInfo++; // Suppress the next relation error
64750 lastSkippedInfo = undefined; // Reset skipped info cache

Callers 2

structuredTypeRelatedToFunction · 0.85
signaturesRelatedToFunction · 0.85

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…