MCPcopy Create free account
hub / github.com/RubyLouvre/anu / attempt

Function attempt

test/json3.js:57–65  ·  view source on GitHub ↗
(func, errorFunc)

Source from the content-addressed store, hash-verified

55 // Internal: Contains `try...catch` logic used by other functions.
56 // This prevents other functions from being deoptimized.
57 function attempt(func, errorFunc) {
58 try {
59 func();
60 } catch (exception) {
61 if (errorFunc) {
62 errorFunc();
63 }
64 }
65 }
66
67 // Test the `Date#getUTC*` methods. Based on work by @Yaffle.
68 var isExtended = new Date(-3509827334573292);

Callers 3

runInContextFunction · 0.85
hasFunction · 0.85
serializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected