{ "id": "78439", "key": "TIMOB-4825", "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": "2011-11-10T14:18:10.000+0000", "created": "2011-07-28T19:18:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "12814", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "79828", "key": "TIMOB-5355", "fields": { "summary": "Javascript parser crash on device when using commonJS modules", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "13813", "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": "2011-12-07T15:57:17.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": "If you leave a comment at the bottom of a file included using require(), a parse error happens.\r\n\r\n{code}\r\nexports.blah = function(value) {\r\n return value;\r\n};\r\n\r\n// Test\r\n{code}\r\n\r\nIf you take //Test comment out - it works fine.\r\n\r\nError:\r\n\r\n{code}\r\n[INFO] Application started\r\n[DEBUG] reading stylesheet from: /Users/rickblalock/Library/Application Support/iPhone Simulator/4.3.2/Applications/F556303E-D2FA-4E79-BE62-58C03927B1A4/fishrules.app/stylesheet.plist\r\n[INFO] fishrules/1.0 (1.8.0.67ca940)\r\n[DEBUG] Analytics is enabled = YES\r\n[DEBUG] loading: /Users/rickblalock/svn_repos/fishrules/Resources/app.js, resource: Users/rickblalock/svn_repos/fishrules/Resources/app_js\r\n[DEBUG] loading: /Users/rickblalock/svn_repos/fishrules/Resources/modules/core.js, resource: Users/rickblalock/svn_repos/fishrules/Resources/modules/core_js\r\n[ERROR] Script Error = {\r\n line = 8;\r\n message = \"Parse error\";\r\n name = SyntaxError;\r\n sourceId = 200399776;\r\n}\r\n2011-07-28 22:11:16.300 fishrules[30267:1ea07] *** Terminating app due to uncaught exception of class '__NSCFDictionary'\r\nterminate called throwing an exception \r\n{code}", "attachment": [], "flagged": false, "summary": "Require / Exports file will crash if comments are at the end", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": "iOS 4.3.x, Ti 1.7.2+", "comment": { "comments": [ { "id": "175260", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on KS using the following environment:\r\n\r\nOS: Mac OS X Lion\r\nTitanium Studio, build: 1.0.7.201112061404\r\nSDK build: 1.8.0.1.v20111207151125\r\nDevice: iphone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T15:57:11.000+0000", "updated": "2011-12-07T15:57:11.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }