{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/2585","labels_url":"https://api.github.com/repos/nodejs/node/issues/2585/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2585/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/2585/events","html_url":"https://github.com/nodejs/node/issues/2585","id":103607269,"number":2585,"title":"instanceof incorrect 0.12.7 on Windows 7","user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T22:21:03Z","updated_at":"2015-08-27T22:22:21Z","closed_at":null,"body":"Need some help pairing this down to a good test, but in the readable-stream module there is a Duplex constructor which calls a Writable constructor [here](https://github.com/nodejs/readable-stream/blob/b6810590821e2082d5b79e3e0d08d3d090ebc353/lib/_stream_duplex.js#L47) and Writable checks that `this instanceof Duplex` [here](https://github.com/nodejs/readable-stream/blob/master/lib/_stream_writable.js#L165).\r\n\r\nI verified that the Duplex constructors referred to in each module are the same in memory so I'm at a loss for what this could be other than a v8 bug.  Sorry if this is too broad, I was unable to to recreate in a simple test.\r\n\r\nIn my case I'm creating these streams in tests and it works for the first several tests and then starts returning false. But again, I know that `this` is an instanceof Duplex when it runs `Writable.call(this, options)`.  \r\n\r\nAny assistance in creating a good test for this is appreciated."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/135572658","html_url":"https://github.com/nodejs/node/issues/2585#issuecomment-135572658","issue_url":"https://api.github.com/repos/nodejs/node/issues/2585","id":135572658,"user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T22:22:21Z","updated_at":"2015-08-27T22:22:21Z","body":"This problem doesn't happen on other OSes I have tested (OSX and Debian)"}}