{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1582","repository_url":"https://api.github.com/repos/tmpvar/jsdom","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1582/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1582/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1582/events","html_url":"https://github.com/tmpvar/jsdom/issues/1582","id":170394333,"number":1582,"title":"window.eval undefined in done callback in jsdom.env","user":{"login":"i8-pi","id":12378597,"avatar_url":"https://avatars.githubusercontent.com/u/12378597?v=3","gravatar_id":"","url":"https://api.github.com/users/i8-pi","html_url":"https://github.com/i8-pi","followers_url":"https://api.github.com/users/i8-pi/followers","following_url":"https://api.github.com/users/i8-pi/following{/other_user}","gists_url":"https://api.github.com/users/i8-pi/gists{/gist_id}","starred_url":"https://api.github.com/users/i8-pi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i8-pi/subscriptions","organizations_url":"https://api.github.com/users/i8-pi/orgs","repos_url":"https://api.github.com/users/i8-pi/repos","events_url":"https://api.github.com/users/i8-pi/events{/privacy}","received_events_url":"https://api.github.com/users/i8-pi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tmpvar/jsdom/labels/fixed%20in%20newapi","name":"fixed in newapi","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-10T11:26:44Z","updated_at":"2016-08-11T11:43:22Z","closed_at":null,"body":"```javascript\r\nconst jsdom = require('jsdom');\r\n\r\njsdom.env('', {\r\n    done: function(err, window) {\r\n        window.eval();\r\n    }\r\n});\r\n```\r\ngives an error\r\n```\r\nTypeError: window.eval is not a function\r\n```\r\nwindow.eval is present in both the browser from jsdom.jsdom\r\n```javascript\r\nconst jsdom = require('jsdom');\r\n\r\nvar window = jsdom.jsdom().defaultView;\r\nwindow.eval();\r\n// Runs successfully\r\n```"},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/239138192","html_url":"https://github.com/tmpvar/jsdom/issues/1582#issuecomment-239138192","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1582","id":239138192,"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":"2016-08-11T11:43:22Z","updated_at":"2016-08-11T11:43:22Z","body":"That's a good idea. I'm trying to not invest any more effort into the old API, but I'll remember it for newapi. Cool."}}
{"actor":{"display_login":"domenic"}}