{ "id": "108931", "key": "TIMOB-12510", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15095", "description": "2013 Sprint 03 BB", "name": "2013 Sprint 03 BB", "archived": true, "released": true, "releaseDate": "2013-02-11" }, { "id": "14813", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-01T02:43:46.000+0000", "created": "2013-01-31T05:59:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T18:26:31.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "If a JavaScript exception is thrown from a module (ex: require()) the\r\nexception is not reported correctly (wrong filename) and no stack is provided.\r\nThe goal of this ticket is to provide a better report of such exceptions.\r\n\r\nh3. Acceptance Test\r\n\r\n1. Create a project that contains your main code (app.js)\r\n which loads a module using require (ex: require('foo')).\r\n2. Write a module (ex: foo.js) that causes a runtime error.\r\n3. Run the program.\r\n4. Confirm in the output from stderr the line on which the exception\r\n was thrown and a stack trace is printed. Confirm filename and location is correct.\r\n5. Edit the module to replace the runtime error with a syntax error.\r\n6. Run the program again.\r\n7. Confirm the line at which the syntax error happened was printed along with a stack\r\n that provides the location at which the script was compiled (ex: require() called).", "attachment": [], "flagged": false, "summary": "BlackBerry: JavaScript exceptions are not always reported properly.", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "236697", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created pull request [#17|https://github.com/appcelerator/titanium_mobile_blackberry/pull/17] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-31T06:22:43.000+0000", "updated": "2013-01-31T06:22:43.000+0000" }, { "id": "409895", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as resolved.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T18:26:31.000+0000", "updated": "2017-03-08T18:26:31.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }