Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-920

should.js causes compiler error

    Details

    • Type: Story
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Alloy 1.4.0, Alloy 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      If you attempt to compile an Alloy app that has should.js (the browser-compatible file that works with traditional Titanium dev), it will result in the following compile time error:

      [INFO] ----- OPTIMIZING -----
      [INFO] - iphone/alloy.js
      [TRACE]   processing "builtins" module...
      [TRACE]   processing "optimizer" module...
      [TRACE]   processing "compress" module...
      [INFO] - iphone/should.js
      WARN: ERROR: Unexpected token keyword «with», expected punc «(» [iphone/should.js:383,6]
      [ERROR] Error generating AST for "/Users/tlukasavage/development/aloy920/Resources/iphone/should.js"
      [ERROR] Unexpected token keyword «with», expected punc «(»
      [ERROR] line 383, column 6, position 9813
      

      We should investigate the root of the error, put in a quick fix, then address the specific problems with uglify-js either via new options or an update to uglify-js.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tlukasavage Tony Lukasavage
                Reporter:
                tlukasavage Tony Lukasavage
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration