MCPcopy Create free account
hub / github.com/reactjs/react-rails / createCapturedValue

Function createCapturedValue

lib/assets/react-source/development/react.js:23164–23172  ·  view source on GitHub ↗
(value, source)

Source from the content-addressed store, hash-verified

23162 }
23163
23164 function createCapturedValue(value, source) {
23165 // If the value is an error, call this function immediately after it is thrown
23166 // so the stack is accurate.
23167 return {
23168 value: value,
23169 source: source,
23170 stack: getStackByFiberInDevAndProd(source)
23171 };
23172 }
23173
23174 function logCapturedError(capturedError) {
23175

Callers 3

throwExceptionFunction · 0.85
captureCommitPhaseErrorFunction · 0.85

Calls 1

Tested by

no test coverage detected