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.
The
selfidentifier is NOT declared locally in the module and hence it comes from global - inrxjs/src/util/root.ts
Line 21 in 3793e47
So, depending on what
window.selfvalue might be (i.e from leaked variables, a common mistake of devs), RxJS might break.RxJS version:
5.0.0-beta.11Code to reproduce:
Add a
window.selfvariable with different values and run tests.