{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/streams/issues/547","repository_url":"https://api.github.com/repos/whatwg/streams","labels_url":"https://api.github.com/repos/whatwg/streams/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/streams/issues/547/comments","events_url":"https://api.github.com/repos/whatwg/streams/issues/547/events","html_url":"https://github.com/whatwg/streams/issues/547","id":184002133,"number":547,"title":"Marking promise rejections as handled","user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-10-19T15:52:24Z","updated_at":"2016-11-07T03:56:27Z","closed_at":null,"body":"See https://bugs.chromium.org/p/chromium/issues/detail?id=654701 for background /cc @yutakahirano @jakearchibald. Also https://github.com/whatwg/streams/issues/468 is kind of related, but that issue was about pipeTo which was confusing since pipeTo was under flux at the time.\n\nA simple repro ([run in Chrome](http://jsbin.com/sopogoyoyi/edit?html,output)) is\n\n``` js\nwindow.onunhandledrejection = e => {\n  console.log(e.reason);\n};\n\nconst rs = new ReadableStream({\n  start(controller) {\n    controller.close();\n  }\n});\nconst reader = rs.getReader();\nreader.releaseLock();\n```\n\nThis will log an unhandled rejection (and also show up in the console in Chrome, but that's a browser-specific devtools thing).\n\nI think the correct solution is that all \"state promises\" like `.closed` should be marked as having their rejection handled (i.e. their [[PromiseIsHandled]] slot should be set to true).\n"},"comment":{"url":"https://api.github.com/repos/whatwg/streams/issues/comments/258742358","html_url":"https://github.com/whatwg/streams/issues/547#issuecomment-258742358","issue_url":"https://api.github.com/repos/whatwg/streams/issues/547","id":258742358,"user":{"login":"tyoshino","id":4511440,"avatar_url":"https://avatars.githubusercontent.com/u/4511440?v=3","gravatar_id":"","url":"https://api.github.com/users/tyoshino","html_url":"https://github.com/tyoshino","followers_url":"https://api.github.com/users/tyoshino/followers","following_url":"https://api.github.com/users/tyoshino/following{/other_user}","gists_url":"https://api.github.com/users/tyoshino/gists{/gist_id}","starred_url":"https://api.github.com/users/tyoshino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyoshino/subscriptions","organizations_url":"https://api.github.com/users/tyoshino/orgs","repos_url":"https://api.github.com/users/tyoshino/repos","events_url":"https://api.github.com/users/tyoshino/events{/privacy}","received_events_url":"https://api.github.com/users/tyoshino/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T03:56:26Z","updated_at":"2016-11-07T03:56:26Z","body":"Oh, I see. Thanks, Adam. I'd like to also hear @domenic 's opinion on this."}}
{"actor":{"display_login":"tyoshino"}}