{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/855","labels_url":"https://api.github.com/repos/iojs/io.js/issues/855/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/855/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/855/events","html_url":"https://github.com/iojs/io.js/issues/855","id":57748040,"number":855,"title":"vm: references to context inside objects are not === the original context","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":[{"url":"https://api.github.com/repos/iojs/io.js/labels/vm","name":"vm","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-15T21:57:32Z","updated_at":"2015-02-18T21:13:26Z","closed_at":null,"body":"Failing test case:\r\n\r\n```js\r\nvar common = require('../common');\r\nvar assert = require('assert');\r\nvar vm = require('vm');\r\n\r\nvar sandbox = {};\r\nsandbox.document = { defaultView: sandbox };\r\n\r\nvm.createContext(sandbox);\r\n\r\nvm.runInContext('var result = document.defaultView === this', sandbox);\r\n\r\nassert.equal(sandbox.result, true);\r\n```\r\n\r\nInvestigating this in my local build ... this is the only remaining test suite failure after switching jsdom to io.js vm."},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/74949005","html_url":"https://github.com/iojs/io.js/issues/855#issuecomment-74949005","issue_url":"https://api.github.com/repos/iojs/io.js/issues/855","id":74949005,"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},"created_at":"2015-02-18T21:13:26Z","updated_at":"2015-02-18T21:13:26Z","body":"I would really like to investigate removing the global proxy concept if we can, since we shouldn't need it since we're not a browser of multiple interacting iframes. I'll see what I can do.\r\n\r\nAn alternative, if we stick with 1, is we should probably expose a method to re-target the global proxy at another backing global."}}