{ "id": "85314", "key": "TIMOB-7335", "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": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T14:43:18.000+0000", "created": "2012-01-23T13:49:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_runtime", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-01-31T14:09:30.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": "When invoking a V8Function that results in a JS error, the app would crash hard instead of handling and reporting the error\r\n\r\nTest app:\r\n{code}\r\nvar window1 = Ti.UI.createWindow({\r\n\tfullscreen: true,\r\n\tbackgroundColor: \"red\"\r\n});\r\n\r\nvar myObject = {};\r\nmyObject.a = 1;\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\ttitle: \"click me!\",\r\n\ttop: 50,\r\n\tleft: 50\r\n});\r\nbutton1.addEventListener(\"click\", function(e) {\r\n\tbutton1.animate({top: 100, duration: 200}, function(e) {\r\n\t\tTi.API.info(\">>>>>>>>> myObject.a = \" + myObject.a);\t\r\n\t\tmyObject = null;\r\n\t\tTi.API.info(\">>>>>>>>> myObject.b = \" + myObject.b);\r\n\t});\t\r\n});\r\n\r\nwindow1.add(button1);\r\n\r\nwindow1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: V8: handle JS failure when invoking V8Function ", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "180407", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.8.1.v20120123161633\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201210622\r\nDevices: Droid 2.2.3\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-24T09:33:40.000+0000", "updated": "2012-01-24T09:33:40.000+0000" }, { "id": "181260", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Updating labels", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T14:09:30.000+0000", "updated": "2012-01-31T14:09:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }