MCPcopy Index your code
hub / github.com/react/create-react-app / tryCatch

Function tryCatch

packages/react-error-overlay/fixtures/bundle_u.mjs:19866–19872  ·  view source on GitHub ↗
(fn, obj, arg)

Source from the content-addressed store, hash-verified

19864 // only additional allocation required is the completion record, which
19865 // has a stable shape and so hopefully should be cheap to allocate.
19866 function tryCatch(fn, obj, arg) {
19867 try {
19868 return { type: "normal", arg: fn.call(obj, arg) };
19869 } catch (err) {
19870 return { type: "throw", arg: err };
19871 }
19872 }
19873
19874 var GenStateSuspendedStart = "suspendedStart";
19875 var GenStateSuspendedYield = "suspendedYield";

Callers 3

invokeFunction · 0.70
makeInvokeMethodFunction · 0.70
maybeInvokeDelegateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected