{ "id": "171187", "key": "TIMOB-25806", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19975", "name": "Hyperloop 3.1.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-03-16T20:39:17.000+0000", "created": "2018-02-24T18:21:09.000+0000", "epic": { "id": 152521, "key": "TIMOB-19834", "name": "Support ES6 for Titanium Application Development", "summary": "Support ES6 for Titanium Application Development", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "19975", "name": "Hyperloop 3.1.0", "archived": false, "released": true } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-03-21T19:05:05.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "When using ES6 in Hyperloop methods, e.g. \r\n{code:js}\r\n var ButtonDelegate = Hyperloop.defineClass('ButtonDelegate', 'NSObject');\r\n\r\n ButtonDelegate.addMethod({\r\n selector: 'buttonPressed:',\r\n instance: true,\r\n arguments: ['UIButton'],\r\n callback: (sender) => { \r\n// ^-- Here is the issue\r\n }\r\n });\r\n{code}\r\nthe build fails:\r\n{code}\r\n[ERROR] An error occurred during build after 33s 538ms\r\n[ERROR] not sure what to do with this node (/Users/hknoechel/Documents/Apps/hyperloop-examples/Resources/iphone/alloy/controllers/button.js:58:13)\r\n{code}\r\nThe error is happening [here|https://github.com/appcelerator/hyperloop.next/blob/master/packages/hyperloop-ios-metabase/lib/generate/custom.js#L773] and looks like the arrow function cannot be mapped to the {{FunctionExpression}} and falls through.", "attachment": [], "flagged": false, "summary": "Hyperloop - iOS: Using ES6 arrow functions in Hyperloop-related code cannot be handled", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "434865", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/hyperloop.next/pull/272", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-24T19:03:24.000+0000", "updated": "2018-02-24T19:03:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }