Skip to content

Idenitifier self is not declared, breaks when self its leaked. #1930

@anodynos

Description

@anodynos

The self identifier is NOT declared locally in the module and hence it comes from global - in

export let root: any = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);

So, depending on what window.self value might be (i.e from leaked variables, a common mistake of devs), RxJS might break.

RxJS version:
5.0.0-beta.11

Code to reproduce:
Add a window.self variable with different values and run tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions