Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android, iOS, Windows
    • Labels:
      None

      Description

      Description

      Spec document: https://github.com/tc39/proposal-global

      I believe we will want to implement the globalThis proposal to ensure JS code written that uses this works in Titanium.

      It is important to note that as it this is specced at the ECMAScript level our JS Engines (v8 and JSCore) will also implement this. Therefore we may wish to follow the polyfill outlined in that repo and ensure that we only define globalThis in environments where it is already defined

      v8 implemented in release 71 https://v8.dev/blog/v8-release-71
      It looks like WebKit implemented in late 2018 https://bugs.webkit.org/show_bug.cgi?id=165171

      We might be able to use test262 to verify our changes are spec compliant

      This should be easy to add via the ti.main.js setup we have

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code