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

## Statements: 93.94% (31 / 33) Branches: 62.5% (10 / 16) Functions: 100% (8 / 8) Lines: 100% (25 / 25) Ignored: none

All files » RxJS/dist/cjs/ » InnerSubscriber.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
    41
    42
    43
    44
    45

    1

    1

    511

    1

    1

    1

    1
    1

    1
    511

    511
    511
    511
    511
    511

    1
    840
    840

    1
    51

    1
    296

    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 InnerSubscriber = (function (_Subscriber) {
        _inherits(InnerSubscriber, _Subscriber);

        function InnerSubscriber(parent, outerValue, outerIndex) {
            _classCallCheck(this, InnerSubscriber);

            _Subscriber.call(this);
            this.parent = parent;
            this.outerValue = outerValue;
            this.outerIndex = outerIndex;
            this.index = 0;
        }

        InnerSubscriber.prototype._next = function _next(value) {
            var index = this.index++;
            this.parent.notifyNext(this.outerValue, value, this.outerIndex, index);
        };

        InnerSubscriber.prototype._error = function _error(error) {
            this.parent.notifyError(error, this);
        };

        InnerSubscriber.prototype._complete = function _complete() {
            this.parent.notifyComplete(this);
        };

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

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