{"action":"closed","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7618","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7618/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7618/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7618/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/7618","id":381090685,"node_id":"MDU6SXNzdWUzODEwOTA2ODU=","number":7618,"title":"js.Promise .catchError() issue","user":{"login":"zabojad","id":1238030,"node_id":"MDQ6VXNlcjEyMzgwMzA=","avatar_url":"https://avatars0.githubusercontent.com/u/1238030?v=4","gravatar_id":"","url":"https://api.github.com/users/zabojad","html_url":"https://github.com/zabojad","followers_url":"https://api.github.com/users/zabojad/followers","following_url":"https://api.github.com/users/zabojad/following{/other_user}","gists_url":"https://api.github.com/users/zabojad/gists{/gist_id}","starred_url":"https://api.github.com/users/zabojad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabojad/subscriptions","organizations_url":"https://api.github.com/users/zabojad/orgs","repos_url":"https://api.github.com/users/zabojad/repos","events_url":"https://api.github.com/users/zabojad/events{/privacy}","received_events_url":"https://api.github.com/users/zabojad/received_events","type":"User","site_admin":false},"labels":[{"id":41000434,"node_id":"MDU6TGFiZWw0MTAwMDQzNA==","url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":41272315,"node_id":"MDU6TGFiZWw0MTI3MjMxNQ==","url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/platform-javascript","name":"platform-javascript","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-15T10:15:40Z","updated_at":"2018-11-26T12:52:36Z","closed_at":"2018-11-26T12:52:36Z","author_association":"NONE","body":"Hi!\r\nThis code:\r\n```\r\n\t\t\t// ...\r\n\t\t\tfunction(res : js.html.Response) {\r\n\t\t\t\tif (res.ok) {\r\n\t\t\t\t\tres.json()\r\n\t\t\t\t\t   .then(onSuccess)\r\n\t\t\t\t\t   .catchError(parseErrorStr.bind('PosApiPostResp',_));\r\n\t\t\t// ...\r\n```\r\ngenerates this with haxe 3.4.4\r\n```\r\nfunction(res) {\r\n\t\tif(res.ok) {\r\n\t\t\tres.json().then(onSuccess)[\"catch\"](function(a2) {\r\n\t\t\t\treturn parseErrorStr(\"PosApiPostResp\",a2);\r\n\t\t\t});\r\n```\r\nI haven't seen any closed issue regarding this..."}}
{"actor":{"display_login":"nadako"}}