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

iOS: Error when using ES6 arrow function

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      iOS
      TI SDK: 6.1.0.v20170519131839 (RC Build)
      Alloy: 1.10.0
      Hyperloop: Not enabled

      Description

      When I have the following code in my controller:

      // Some comments here
      var toggleRight = e => {
       
      	$.rightmenu.zIndex = 500;
      	$.content.animate({
      		duration: 500,
      		left:     0,
      	});
      };
      

      I get this runtime error in iOS:

      [ERROR]     message = "Unexpected token ')'";
      

      Android works as expected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brentonhouse Brenton House
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code