# Code coverage report for RxJS/dist/cjs/util/tryOrOnError.js

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

All files » RxJS/dist/cjs/util/ » tryOrOnError.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18

    1
    1

    1
    1
    5197
    5197

    1

    916
    916

    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;
    }

    module.exports = exports["default"];