MCPcopy Create free account
hub / github.com/microsoft/SandDance / createCapturedValue

Function createCapturedValue

docs/external/js/react-dom.development.js:19604–19612  ·  view source on GitHub ↗
(value, source)

Source from the content-addressed store, hash-verified

19602 }
19603
19604 function createCapturedValue(value, source) {
19605 // If the value is an error, call this function immediately after it is thrown
19606 // so the stack is accurate.
19607 return {
19608 value: value,
19609 source: source,
19610 stack: getStackByFiberInDevAndProd(source)
19611 };
19612 }
19613
19614 function logCapturedError(capturedError) {
19615

Callers 3

throwExceptionFunction · 0.85
captureCommitPhaseErrorFunction · 0.85

Calls 1

Tested by

no test coverage detected