{ "id": "79828", "key": "TIMOB-5355", "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": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-09T12:12:03.000+0000", "created": "2011-08-30T08:19:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_build", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "12814", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "78439", "key": "TIMOB-4825", "fields": { "summary": "Require / Exports file will crash if comments are at the end", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "13814", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "78440", "key": "TIMOB-4826", "fields": { "summary": "module.exports not supported when requiring a file", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-09T12:12:03.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": "Here's what the app.js file looks like:\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar TextEditWindow = require('TextEditWindow').TextEditWindow;\r\n{code}\r\n\r\nHere's the TextEditWindow.js file:\r\n\r\n{code:title=TextEditWindow.js|borderStyle=solid}\r\nexports.TextEditWindow = function() {\r\n\r\n\tvar win = Titanium.UI.createWindow();\r\n\t\r\n\treturn win;\r\n};\r\n\r\nexports.TextEditWindow.prototype.calculateBottom = function(orientation) {\r\n\tvar calculatedBottom = 10;\r\n\t\r\n\treturn calculateBottom;\r\n}\r\n{code}\r\n\r\nWithout a \";\" at the end of TextEditWindow, it crashes on-device, but works in the Simulator. The crash said there was a parse error at line 3 (obviously nowhere near the problem), and doesn't specify which file. Either the parser should be a little less strict, or we should be able to get a more accurate error message.", "attachment": [], "flagged": false, "summary": "Javascript parser crash on device when using commonJS modules", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS 4+, Ti SDK 1.7.2", "comment": { "comments": [ { "id": "165995", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-09-14T09:20:57.000+0000", "updated": "2011-09-14T09:20:57.000+0000" }, { "id": "166846", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Shannon\r\n\r\nWhich device did you test this on, please?\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-23T16:56:15.000+0000", "updated": "2011-09-23T16:56:15.000+0000" }, { "id": "166857", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "I tried it on an iPhone 4 running the latest [REDACTED], and a 3G running 4.2.1", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2011-09-23T20:21:24.000+0000", "updated": "2011-09-23T20:21:24.000+0000" }, { "id": "171845", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hours recorded on 4825. Pull pending. https://github.com/appcelerator/titanium_mobile/pull/647", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-07T17:27:45.000+0000", "updated": "2011-11-07T17:27:45.000+0000" }, { "id": "175487", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111208104316\r\nStudio: 1.0.7.201112080131\r\nOS: OS X Lion\r\nDevices Tested: iPod 4.3.3", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T14:56:28.000+0000", "updated": "2011-12-08T14:56:28.000+0000" }, { "id": "178530", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-09T11:21:39.000+0000", "updated": "2012-01-09T11:21:39.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }