Code coverage report for cjs/util/tryCatch.js

Statements: 100% (13 / 13)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (13 / 13)      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 18 19 20 21 22 23 24 25 26    1 1   1   1 1 4387 4387   70 70       1 4387 4387         1  
'use strict';
 
exports.__esModule = true;
exports['default'] = tryCatch;
 
var _errorObject = require('./errorObject');
 
var tryCatchTarget = undefined;
function tryCatcher() {
    try {
        return tryCatchTarget.apply(this, arguments);
    } catch (e) {
        _errorObject.errorObject.e = e;
        return _errorObject.errorObject;
    }
}
 
function tryCatch(fn) {
    tryCatchTarget = fn;
    return tryCatcher;
}
 
;
//# sourceMappingURL=tryCatch.js.map
module.exports = exports['default'];
//# sourceMappingURL=tryCatch.js.map