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

Function tryCallOne

packages/react-error-overlay/fixtures/bundle_u.mjs:12992–12999  ·  view source on GitHub ↗
(fn, a)

Source from the content-addressed store, hash-verified

12990}
12991
12992function tryCallOne(fn, a) {
12993 try {
12994 return fn(a);
12995 } catch (ex) {
12996 LAST_ERROR = ex;
12997 return IS_ERROR;
12998 }
12999}
13000function tryCallTwo(fn, a, b) {
13001 try {
13002 fn(a, b);

Callers 1

handleResolvedFunction · 0.70

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected