Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24404

Titanium projects specify "global.global != global" different

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.1.0
    • Component/s: Android
    • Labels:
      None
    • Sprint:
      2017 Sprint 25 SDK

      Description

      One of the users of the RxJS library reported that Appcelarator doesn't define `global.global = global` like node.js does.

      Since node.js doesn't have an official spec, I can't link to this behavior (it's also not documented best I can tell) but it was almost certainly borrowed from the fact that in browsers `window.window = window`--that's spec'd here.

      Since appcelerator says it has full node.js support minus some documented caveats, we were wondering if it would be easy and acceptable to also have `global.global = global`?

      Note that RxJS not the only library using `global.global == global` checks. There are many. It's mostly done to confirm we're not accidentally using a variable that happens to be named `global` but isn't really what we're looking for.

      Separately, we're going to discuss whether we could relax this check--but I think appcelerator would benefit from defining it regardless, cause others rely on it.

      RxJS issue: https://github.com/ReactiveX/rxjs/issues/2366

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              jphelps Jay Phelps
              Reviewer:
              Hans Knöchel
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10491
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code