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

Function getActual

lib/assert.js:577–585  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

575}
576
577function getActual(fn) {
578 validateFunction(fn, 'fn');
579 try {
580 fn();
581 } catch (e) {
582 return e;
583 }
584 return NO_EXCEPTION_SENTINEL;
585}
586
587function checkIsPromise(obj) {
588 // Accept native ES6 promises and promises that are implemented in a similar

Callers 1

assert.jsFile · 0.85

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…