Code coverage report for cjs/util/tryOrOnError.js

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

All files » cjs/util/ » tryOrOnError.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20    1 1   1 1 4997 4997   3     1096 1096       1  
"use strict";
 
exports.__esModule = true;
exports["default"] = tryOrOnError;
 
function tryOrOnError(target) {
    function tryCatcher() {
        try {
            tryCatcher.target.apply(this, arguments);
        } catch (e) {
            this.error(e);
        }
    }
    tryCatcher.target = target;
    return tryCatcher;
}
 
//# sourceMappingURL=tryOrOnError.js.map
module.exports = exports["default"];
//# sourceMappingURL=tryOrOnError.js.map