MCPcopy Create free account
hub / github.com/microsoft/SandDance / tryCatch

Function tryCatch

docs/app/js/sanddance-app.js:53216–53228  ·  view source on GitHub ↗
(fn, obj, arg)

Source from the content-addressed store, hash-verified

53214 }(innerFn1, self1, context1), generator;
53215 }
53216 function tryCatch(fn, obj, arg) {
53217 try {
53218 return {
53219 type: "normal",
53220 arg: fn.call(obj, arg)
53221 };
53222 } catch (err) {
53223 return {
53224 type: "throw",
53225 arg: err
53226 };
53227 }
53228 }
53229 exports.wrap = wrap;
53230 var ContinueSentinel = {};
53231 function Generator() {}

Callers 3

wrapFunction · 0.70
invokeFunction · 0.70
maybeInvokeDelegateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected