{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/990","repository_url":"https://api.github.com/repos/petkaantonov/bluebird","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/990/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/990/events","html_url":"https://github.com/petkaantonov/bluebird/issues/990","id":131004175,"number":990,"title":"Warning: a promise was rejected with a non-error: [object Error]","user":{"login":"ColCh","id":599439,"avatar_url":"https://avatars.githubusercontent.com/u/599439?v=3","gravatar_id":"","url":"https://api.github.com/users/ColCh","html_url":"https://github.com/ColCh","followers_url":"https://api.github.com/users/ColCh/followers","following_url":"https://api.github.com/users/ColCh/following{/other_user}","gists_url":"https://api.github.com/users/ColCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ColCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColCh/subscriptions","organizations_url":"https://api.github.com/users/ColCh/orgs","repos_url":"https://api.github.com/users/ColCh/repos","events_url":"https://api.github.com/users/ColCh/events{/privacy}","received_events_url":"https://api.github.com/users/ColCh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/petkaantonov/bluebird/labels/3.0.0","name":"3.0.0","color":"5319e7"},{"url":"https://api.github.com/repos/petkaantonov/bluebird/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-02-03T12:02:02Z","updated_at":"2016-05-02T11:53:11Z","closed_at":"2016-02-12T00:41:55Z","body":"A warning is fired when I reject a Promise with an `new Error('...')`, but __Promise__ and __Error__ are from different `Window` 's (e.g. __window.opener__ and *window child* - from __window.open__ or __iframe.contentWindow__).\r\n\r\nOf cource, it means, that `rejectReason instanceof Error` returns `false`, because __Error__ is instance of __iframe.contentWindow.Error__ (not of __window.Error__)\r\n"},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/216217561","html_url":"https://github.com/petkaantonov/bluebird/issues/990#issuecomment-216217561","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/990","id":216217561,"user":{"login":"BridgeAR","id":8822573,"avatar_url":"https://avatars.githubusercontent.com/u/8822573?v=3","gravatar_id":"","url":"https://api.github.com/users/BridgeAR","html_url":"https://github.com/BridgeAR","followers_url":"https://api.github.com/users/BridgeAR/followers","following_url":"https://api.github.com/users/BridgeAR/following{/other_user}","gists_url":"https://api.github.com/users/BridgeAR/gists{/gist_id}","starred_url":"https://api.github.com/users/BridgeAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BridgeAR/subscriptions","organizations_url":"https://api.github.com/users/BridgeAR/orgs","repos_url":"https://api.github.com/users/BridgeAR/repos","events_url":"https://api.github.com/users/BridgeAR/events{/privacy}","received_events_url":"https://api.github.com/users/BridgeAR/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T11:53:11Z","updated_at":"2016-05-02T11:53:11Z","body":"I updated my example to inherit from Error. I implied a Node.js inheritance."}}