MCPcopy
hub / github.com/react/create-react-app / tryCallOne

Function tryCallOne

packages/react-error-overlay/fixtures/bundle.mjs:12832–12839  ·  view source on GitHub ↗
(fn, a)

Source from the content-addressed store, hash-verified

12830}
12831
12832function tryCallOne(fn, a) {
12833 try {
12834 return fn(a);
12835 } catch (ex) {
12836 LAST_ERROR = ex;
12837 return IS_ERROR;
12838 }
12839}
12840function tryCallTwo(fn, a, b) {
12841 try {
12842 fn(a, b);

Callers 1

handleResolvedFunction · 0.70

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected