Code coverage report for cjs/util/tryCatch.js

Statements: 100% (11 / 11)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (11 / 11)      Ignored: none     

All files » cjs/util/ » tryCatch.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181 1 1 23448 23448     122 122     1 23448 23448   1    
var errorObject_1 = require('./errorObject');
var tryCatchTarget;
function tryCatcher() {
    try {
        return tryCatchTarget.apply(this, arguments);
    }
    catch (e) {
        errorObject_1.errorObject.e = e;
        return errorObject_1.errorObject;
    }
}
function tryCatch(fn) {
    tryCatchTarget = fn;
    return tryCatcher;
}
exports.tryCatch = tryCatch;
;
//# sourceMappingURL=tryCatch.js.map