{"action":"closed","issue":{"url":"https://api.github.com/repos/NodeGuy/channel/issues/2","repository_url":"https://api.github.com/repos/NodeGuy/channel","labels_url":"https://api.github.com/repos/NodeGuy/channel/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/NodeGuy/channel/issues/2/comments","events_url":"https://api.github.com/repos/NodeGuy/channel/issues/2/events","html_url":"https://github.com/NodeGuy/channel/issues/2","id":301214172,"number":2,"title":"channel does not work with Bluebird promises","user":{"login":"druska","id":650297,"avatar_url":"https://avatars2.githubusercontent.com/u/650297?v=4","gravatar_id":"","url":"https://api.github.com/users/druska","html_url":"https://github.com/druska","followers_url":"https://api.github.com/users/druska/followers","following_url":"https://api.github.com/users/druska/following{/other_user}","gists_url":"https://api.github.com/users/druska/gists{/gist_id}","starred_url":"https://api.github.com/users/druska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druska/subscriptions","organizations_url":"https://api.github.com/users/druska/orgs","repos_url":"https://api.github.com/users/druska/repos","events_url":"https://api.github.com/users/druska/events{/privacy}","received_events_url":"https://api.github.com/users/druska/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T22:49:27Z","updated_at":"2018-03-21T01:43:43Z","closed_at":"2018-03-21T01:43:43Z","author_association":"NONE","body":"It seems like freezing the Promise object creates an issue when native promises are replaced with Bluebird promises.\r\n\r\nReproduction:\r\nhttps://gist.github.com/druska/94fcf4bbdb8588391040b20915ed9bab\r\n\r\nResult:\r\n```\r\nnode --trace-warnings nodeguy_bluebird_issue.js\r\n\r\n(node:86229) TypeError: Cannot assign to read only property '_promise0' of object '[object Object]'\r\n    at Promise._addCallbacks (/private/tmp/node_modules/bluebird/js/release/promise.js:396:24)\r\n    at Promise._then (/private/tmp/node_modules/bluebird/js/release/promise.js:270:16)\r\n    at Promise.then (/private/tmp/node_modules/bluebird/js/release/promise.js:125:17)\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\n    at Function.Module.runMain (module.js:686:11)\r\n    at startup (bootstrap_node.js:187:16)\r\n    at bootstrap_node.js:608:3\r\n(node:86229) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n    at emitWarning (internal/process/promises.js:78:15)\r\n    at emitPendingUnhandledRejections (internal/process/promises.js:95:11)\r\n    at process._tickCallback (internal/process/next_tick.js:189:7)\r\n    at Function.Module.runMain (module.js:686:11)\r\n    at startup (bootstrap_node.js:187:16)\r\n    at bootstrap_node.js:608:3\r\n/private/tmp/node_modules/bluebird/js/release/promise.js:294\r\n    this._bitField = this._bitField | 33554432;\r\n                   ^\r\n\r\nTypeError: Cannot assign to read only property '_bitField' of object '[object Object]'\r\n    at Promise._setFulfilled (/private/tmp/node_modules/bluebird/js/release/promise.js:294:20)\r\n    at Promise._fulfill (/private/tmp/node_modules/bluebird/js/release/promise.js:633:10)\r\n    at Promise._resolveCallback (/private/tmp/node_modules/bluebird/js/release/promise.js:432:57)\r\n    at /private/tmp/node_modules/bluebird/js/release/promise.js:484:17\r\n    at Object.resolve (/private/tmp/node_modules/@nodeguy/channel/lib/index.js:17:9)\r\n    at Immediate.processOrders [as _onImmediate] (/private/tmp/node_modules/@nodeguy/channel/lib/index.js:64:15)\r\n    at runCallback (timers.js:789:20)\r\n    at tryOnImmediate (timers.js:751:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:722:5)\r\n```"}}
{"actor":{"display_login":"NodeGuy"}}