{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/548","labels_url":"https://api.github.com/repos/iojs/io.js/issues/548/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/548/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/548/events","html_url":"https://github.com/iojs/io.js/issues/548","id":55111297,"number":548,"title":"Function redefination in vm.runInContext","user":{"login":"kyriosli","id":1522145,"avatar_url":"https://avatars.githubusercontent.com/u/1522145?v=3","gravatar_id":"","url":"https://api.github.com/users/kyriosli","html_url":"https://github.com/kyriosli","followers_url":"https://api.github.com/users/kyriosli/followers","following_url":"https://api.github.com/users/kyriosli/following{/other_user}","gists_url":"https://api.github.com/users/kyriosli/gists{/gist_id}","starred_url":"https://api.github.com/users/kyriosli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyriosli/subscriptions","organizations_url":"https://api.github.com/users/kyriosli/orgs","repos_url":"https://api.github.com/users/kyriosli/repos","events_url":"https://api.github.com/users/kyriosli/events{/privacy}","received_events_url":"https://api.github.com/users/kyriosli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-22T03:48:27Z","updated_at":"2015-01-22T04:53:04Z","closed_at":null,"body":"Possible bug of iojs or perhaps v8?\r\n\r\n        var vm = require('vm'), ctx = vm.createContext({});\r\n        \r\n        vm.runInContext('function test(){return 0}', ctx);\r\n        vm.runInContext('function test(){return 1}', ctx);\r\n        \r\n        var result = vm.runInContext('test()', ctx);\r\n        // returns 0 in io.js, but 1 in node.js\r\n\r\nTested under win7 x64 and linux."},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/70971338","html_url":"https://github.com/iojs/io.js/issues/548#issuecomment-70971338","issue_url":"https://api.github.com/repos/iojs/io.js/issues/548","id":70971338,"user":{"login":"chrisdickinson","id":37303,"avatar_url":"https://avatars.githubusercontent.com/u/37303?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdickinson","html_url":"https://github.com/chrisdickinson","followers_url":"https://api.github.com/users/chrisdickinson/followers","following_url":"https://api.github.com/users/chrisdickinson/following{/other_user}","gists_url":"https://api.github.com/users/chrisdickinson/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdickinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdickinson/subscriptions","organizations_url":"https://api.github.com/users/chrisdickinson/orgs","repos_url":"https://api.github.com/users/chrisdickinson/repos","events_url":"https://api.github.com/users/chrisdickinson/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdickinson/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T04:53:04Z","updated_at":"2015-01-22T04:53:04Z","body":"What version of node? Likely this is due to the switch to contextify internally."}}