{ "id": "134083", "key": "TIMOB-17448", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-20T23:29:34.000+0000", "created": "2014-08-02T02:59:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_module", "qe-manualtest" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-20T23:29:35.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. problem\r\n\r\nIf a commonjs module assigns anything other than the following types to {{module.exports}}, the app crashes with no output to the console:\r\n\r\n* Function\r\n* Object\r\n* String\r\n\r\nFor example, returning any of the following in {{module.exports}} will crash the app:\r\n\r\n* Number\r\n* Boolean\r\n* null\r\n* undefined\r\n* NaN\r\n\r\nThis issue does not seem to appear on Android.\r\n\r\nh2. test case\r\n\r\nCreating the following simple app will crash the simulator when it is run.\r\n\r\nh3. foo.js\r\n{code:javascript}\r\nmodule.exports = 123;\r\n\r\n// the following cases will also crash\r\n\r\n// module.exports = true;\r\n// module.exports = undefined;\r\n// module.exports = null;\r\n{code}\r\n\r\nh3. app.js\r\n{code:javascript}\r\nrequire('foo');\r\n{code}\r\n", "attachment": [ { "id": "50613", "filename": "crash_08_20_14.txt", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T21:37:12.000+0000", "size": 34636, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: error when commonjs module exports certain types", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.3.0.GA \r\niOS 7.1 sim", "closedSprints": [ { "id": 175, "state": "closed", "name": "2014 Sprint 17 SDK", "startDate": "2014-08-21T22:07:00.000Z", "endDate": "2014-08-30T00:00:00.000Z", "completeDate": "2014-09-02T19:56:25.517Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "316970", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5948", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-04T23:21:15.000+0000", "updated": "2014-08-04T23:21:15.000+0000" }, { "id": "319561", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please, see the crash report.\r\nEnvironment tested\r\nMac osx 1-.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201408180158\r\nNode.JS Version: v0.10.28\r\nNPM Path: /usr/local/bin/npm\r\nNPM Version: 1.4.23\r\nacs@1.0.16\r\nalloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#b2e8f580d023e45c63072df924666e58193a8981)\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#9079326639c7f610dafee33dd16742de7d92d795)\r\ntitanium-code-processor@1.1.1\r\nXcode6\r\nDevice: iPhone 5c iOS 7.1\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T21:35:57.000+0000", "updated": "2014-08-20T21:35:57.000+0000" }, { "id": "319581", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium SDK, build 3.4.0.v20140820125714 has the fix :)", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T23:11:34.000+0000", "updated": "2014-08-20T23:11:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }