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

TiAPI: require implementation uses incorrect __filename values

    Details

    • Story Points:
      8
    • Sprint:
      2016 Sprint 15 SDK

      Description

      Our require implementation uses different values for __filename than what may be expected from an implementation like NodeJS. Additionally, our values differ between platforms.

      On Windows, we get the base name of the file ('filename'). On iOS and Android we get the filename with no path info ('filename.js').

      To match Node, we should be giving the absolute path to the resolved file ('/path/to/filename.js').

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                cwilliams Christopher Williams
                Reviewer:
                Ashraf Abu (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code