MCPcopy Index your code
hub / github.com/nodejs/node / Catch

Function Catch

deps/v8/test/mjsunit/try.js:30–34  ·  view source on GitHub ↗
(f, g)

Source from the content-addressed store, hash-verified

28// Flags: --expose-gc
29
30function Catch(f, g) {
31 var r;
32 try { r = f(); } catch (o) { return g(o); }
33 return r;
34}
35
36function CatchReturn(f, g) {
37 try { return f(); } catch (o) { return g(o); }

Callers

nothing calls this directly

Calls 2

fFunction · 0.70
gFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…