{ "id": "167540", "key": "TIMOB-24673", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-09-19T15:30:05.000+0000", "created": "2017-05-10T11:23:57.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "56791", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "171392", "key": "TIMOB-25899", "fields": { "summary": "Android: Modify JSON.stringify(Error) to not return \"{}\"", "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": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": null, "updated": "2018-09-19T15:30:05.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Description\r\n\r\nWhen performing a try catch on a require, if the module is not found then the error thrown will be an empty object, it should be a string like \"Couldn't find module: /foo\"\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the below to your app.js\r\n# Build for Android\r\n\r\n{code}\r\ntry {\r\n\trequire('/foo')\r\n} catch(e) {\r\n\tconsole.log(e)\r\n}\r\n{code}\r\n\r\nh5.Actual\r\n\r\nEmpty object is returned as the error\r\n\r\nh5.Expected\r\n\r\nError should equal something like \"Couldn't find module: /foo\"", "attachment": [], "flagged": false, "summary": "Android: Error thrown from require is an empty object", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.2.0.v20170509163336", "comment": { "comments": [ { "id": "441702", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Will be fixed by TIMOB-25899", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-19T15:29:42.000+0000", "updated": "2018-09-19T15:29:42.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }