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

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

All files » RxJS/dist/cjs/util/ » Symbol_iterator.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

    1

    1

    1

    1

    1

    1'use strict';

    exports.__esModule = true;

    var _root = require('./root');

    Iif (!_root.root.Symbol) {
        _root.root.Symbol = {};
    }
    Iif (!_root.root.Symbol.iterator) {
        if (typeof _root.root.Symbol['for'] === 'function') {
            _root.root.Symbol.iterator = _root.root.Symbol['for']('iterator');
        } else if (_root.root.Set && typeof new _root.root.Set()['@@iterator'] === 'function') {
            // Bug for mozilla version
            _root.root.Symbol.iterator = '@@iterator';
        } else {
            _root.root.Symbol.iterator = '_es6shim_iterator_';
        }
    }
    exports['default'] = _root.root.Symbol.iterator;

    // // Shim in iterator support
    // export var $iterator$ = (typeof Symbol === 'function' && Symbol.iterator) || '_es6shim_iterator_';
    // // Bug for mozilla version
    // if (root.Set && typeof new root.Set()['@@iterator'] === 'function') {
    //     $iterator$ = '@@iterator';
    // }
    module.exports = exports['default'];