# Code coverage report for RxJS/dist/cjs/OuterSubscriber.js

## Statements: 92.86% (26 / 28) Branches: 62.5% (10 / 16) Functions: 100% (8 / 8) Lines: 100% (20 / 20) Ignored: none

All files » RxJS/dist/cjs/ » OuterSubscriber.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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40

    1

    1

    281

    1

    1

    1

    1
    1

    1
    281

    281

    1
    6

    1
    172

    1
    47

    1

    1
    1'use strict';

    exports.__esModule = true;

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

    function _classCallCheck(instance, Constructor) { Iif (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

    function _inherits(subClass, superClass) { Iif (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); Eif (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

    var _Subscriber2 = require('./Subscriber');

    var _Subscriber3 = _interopRequireDefault(_Subscriber2);

    var OuterSubscriber = (function (_Subscriber) {
        _inherits(OuterSubscriber, _Subscriber);

        function OuterSubscriber() {
            _classCallCheck(this, OuterSubscriber);

            _Subscriber.apply(this, arguments);
        }

        OuterSubscriber.prototype.notifyComplete = function notifyComplete(inner) {
            this.destination.complete();
        };

        OuterSubscriber.prototype.notifyNext = function notifyNext(outerValue, innerValue, outerIndex, innerIndex) {
            this.destination.next(innerValue);
        };

        OuterSubscriber.prototype.notifyError = function notifyError(error, inner) {
            this.destination.error(error);
        };

        return OuterSubscriber;
    })(_Subscriber3['default']);

    exports['default'] = OuterSubscriber;
    module.exports = exports['default'];