Code coverage report for RxJS/dist/cjs/util/tryCatch.js

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

All files » RxJS/dist/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    1 1   1   1 1 4925 4925   64 64       1 4925 4925       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;
}
 
;
module.exports = exports['default'];