rxjs: Some environments fail with global.global === global in util/root.ts incorrectly

RxJS version: 5.1.1

Code to reproduce: Load the library in an Appcelerator Titanium app environment.

Expected behavior: App to load and RxJS to work.

Actual behavior: App fails to load and throws the error โ€œRxJS could not find any global context (window, self, global)โ€

Additional information: The global variable is available but the check global.global === global fails because global does not contain a reference to itself. See https://github.com/ReactiveX/rxjs/blob/master/src/util/root.ts#L18.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

Note that @SherlockStdโ€™s problem with 5.3.2 is actually not related to this issue ticket. 5.3.2 was a bad release, broken for everyone https://github.com/ReactiveX/rxjs/issues/2598 fixed in 5.3.3 (as well as the latest 5.4.0)

Fixed with the release of 5.4.0 ๐Ÿ˜„ https://github.com/SherlockStd/ME4N-Starter/pull/3

Hans from Appcelerator here, thanks for filing the issue @jayphelps! ๐Ÿ˜Š Weโ€™re looking into it.