{ "id": "174318", "key": "TIMOB-27509", "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": null, "resolutiondate": null, "created": "2019-10-29T17:29:35.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule" ], "versions": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "issuelinks": [ { "id": "57890", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174319", "key": "TIMOB-27510", "fields": { "summary": "Android: Ti.UI.WebView.evalJS assumes no trailing semicolon", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2019-10-29T17:32:16.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "See https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/Resources/ti.ui.webview.test.js#L410\r\n\r\nOn iOS we get an actual String result, say 'http://google.com', whereas on Android we get a quoted string: '\"http://google.com\"'.\r\n\r\nAccording to our API docs (https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView-method-evalJS) we say we return a string to it may make sense to then double quote a string to differentiate between a literal {{true}} versus string {{'true'}}. But I think we should investigate parity issues here (and the docs) and consider retuning the \"raw\" value resulting on both platforms, rather than a value that you'd need to `JSON.parse()` or `eval()` yourself once you got it. (In other words, change the documented return type(s) to: object, number, boolean, string, undefined.)", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.WebView.evalJS returns double-quoted string values", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }