{"action":"created","issue":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1429","repository_url":"https://api.github.com/repos/Reactive-Extensions/RxJS","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1429/labels{/name}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1429/comments","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1429/events","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/1429","id":211783508,"number":1429,"title":"toPromise() + ZoneAwarePromise not working? Fails silently. ","user":{"login":"josh-sachs","id":11616365,"avatar_url":"https://avatars0.githubusercontent.com/u/11616365?v=4","gravatar_id":"","url":"https://api.github.com/users/josh-sachs","html_url":"https://github.com/josh-sachs","followers_url":"https://api.github.com/users/josh-sachs/followers","following_url":"https://api.github.com/users/josh-sachs/following{/other_user}","gists_url":"https://api.github.com/users/josh-sachs/gists{/gist_id}","starred_url":"https://api.github.com/users/josh-sachs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh-sachs/subscriptions","organizations_url":"https://api.github.com/users/josh-sachs/orgs","repos_url":"https://api.github.com/users/josh-sachs/repos","events_url":"https://api.github.com/users/josh-sachs/events{/privacy}","received_events_url":"https://api.github.com/users/josh-sachs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-03T19:42:46Z","updated_at":"2017-11-17T08:35:04Z","closed_at":null,"author_association":"NONE","body":"I'm writing for Angular2 in Typescript targeting es5 with es2015 modules.\r\n\r\nPromise is a constructor that at run time in the browser resolves to ZoneAwarePromise() from zone.js\r\n\r\n`obs$.toPromise() `subscribes but doesn't ever resolve or reject... presumably because the environment doesn't support es2015 promises (I believe this should throw an ERROR). \r\n\r\n`obs$.toPromise(Promise)` subscribes but doesn't ever resolve or reject... although I would imagine it should since Promise is a valid constructor (e.g. `new Promise(function(resolve, reject)...)`) works.  Never-the-less, at least an error should be thrown.\r\n\r\nThe work around - which took me hours to arrive at due to the silent failures - is\r\n\r\n```\r\nnew Promise(function(resolve, reject) {\r\n     obs$.take(1).subscribe(resolve,reject);\r\n});\r\n```\r\n\r\nNot sure why feeding Promise into toPromise() doesn't work, and I wan't to assert again that this method should fail with a clear error when the Environment or constructor is mis-appropirated.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments/345179005","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/1429#issuecomment-345179005","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1429","id":345179005,"user":{"login":"gabrielalan","id":244590,"avatar_url":"https://avatars3.githubusercontent.com/u/244590?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielalan","html_url":"https://github.com/gabrielalan","followers_url":"https://api.github.com/users/gabrielalan/followers","following_url":"https://api.github.com/users/gabrielalan/following{/other_user}","gists_url":"https://api.github.com/users/gabrielalan/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielalan/subscriptions","organizations_url":"https://api.github.com/users/gabrielalan/orgs","repos_url":"https://api.github.com/users/gabrielalan/repos","events_url":"https://api.github.com/users/gabrielalan/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielalan/received_events","type":"User","site_admin":false},"created_at":"2017-11-17T08:35:04Z","updated_at":"2017-11-17T08:35:04Z","author_association":"NONE","body":"@paulpdaniels thank you. Adding operator first did it."}}
{"actor":{"display_login":"gabrielalan"}}