{ "id": "159625", "key": "AC-3515", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-04-21T14:34:15.000+0000", "created": "2016-04-17T17:44:05.000+0000", "labels": [ "alloy", "bluebird", "ios", "javascript", "minification" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-21T14:34:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I use Bluebird Promise library in my Alloy app. App builds for Android without any issues but for iOS throws the error below and crashes. I \r\n\r\n*Reproduce:*\r\n* Include bluebird.js in app/lib\r\n* Build/Run for iOS (iPhone 6s)\r\n* Red error dialog is displayed and reads: _Attempted to assign to readonly property at bluebird.js_\r\n\r\nBefore I opened this issue here, I made sure it's not Bluebird itself and opened an issue at GitHub here: https://github.com/petkaantonov/bluebird/issues/1073 \r\n\r\nThe author clearly states that, that property is not readonly and this is not specific to Bluebird.\r\n\r\n-My guess is minification breaks the code for iOS.-\r\n", "attachment": [ { "id": "59039", "filename": "2016-04-21 04.54.01 pm.png", "author": { "name": "onury", "key": "onury", "displayName": "Onur Yıldırım", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-04-21T14:06:14.000+0000", "size": 163640, "mimeType": "image/png" } ], "flagged": false, "summary": "Minification breaks javascript lib", "creator": { "name": "onury", "key": "onury", "displayName": "Onur Yıldırım", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "onury", "key": "onury", "displayName": "Onur Yıldırım", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Titanium SDK v5.2.2.GA\r\nAppcelerator v4.5.0\r\nNode v4.3.0\r\nBluebird v3.3.5", "comment": { "comments": [ { "id": "383360", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nI tried to reproduce the issue in my environment. I wasn't able to reproduce the issue. I put the bluebird.js in app/lib folder and required the file in \"index.js\" as \"require('bluebird');\".\r\n\r\nI build the app in iOS. the app runs as expected. No crash occurred.\r\n\r\nCould you please attach relevant code which is essential for regenerating the issue. \r\n\r\nRegards,\r\nSharif.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-20T15:48:25.000+0000", "updated": "2016-04-20T15:48:25.000+0000" }, { "id": "383537", "author": { "name": "onury", "key": "onury", "displayName": "Onur Yıldırım", "active": true, "timeZone": "Europe/Moscow" }, "body": "Turns out this issue is invalid. Minification is not the problem, my code was. But the misdirection is the error dialog shown. ", "updateAuthor": { "name": "onury", "key": "onury", "displayName": "Onur Yıldırım", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-04-21T14:07:47.000+0000", "updated": "2016-04-21T14:07:47.000+0000" }, { "id": "383539", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Thanks for letting us know. Closing the ticket. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-21T14:33:59.000+0000", "updated": "2016-04-21T14:33:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }