{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/globals/issues/58","labels_url":"https://api.github.com/repos/sindresorhus/globals/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/globals/issues/58/comments","events_url":"https://api.github.com/repos/sindresorhus/globals/issues/58/events","html_url":"https://github.com/sindresorhus/globals/pull/58","id":111961128,"number":58,"title":"Added window to phantom","user":{"login":"ArnaudBuchholz","id":4194952,"avatar_url":"https://avatars.githubusercontent.com/u/4194952?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnaudBuchholz","html_url":"https://github.com/ArnaudBuchholz","followers_url":"https://api.github.com/users/ArnaudBuchholz/followers","following_url":"https://api.github.com/users/ArnaudBuchholz/following{/other_user}","gists_url":"https://api.github.com/users/ArnaudBuchholz/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnaudBuchholz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnaudBuchholz/subscriptions","organizations_url":"https://api.github.com/users/ArnaudBuchholz/orgs","repos_url":"https://api.github.com/users/ArnaudBuchholz/repos","events_url":"https://api.github.com/users/ArnaudBuchholz/events{/privacy}","received_events_url":"https://api.github.com/users/ArnaudBuchholz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-17T12:22:08Z","updated_at":"2015-10-19T21:21:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/globals/pulls/58","html_url":"https://github.com/sindresorhus/globals/pull/58","diff_url":"https://github.com/sindresorhus/globals/pull/58.diff","patch_url":"https://github.com/sindresorhus/globals/pull/58.patch"},"body":"First, sorry for all that mess...\r\n\r\nThen, I found that window was missing in phantom environment.\r\n\r\n- Arnaud"},"comment":{"url":"https://api.github.com/repos/sindresorhus/globals/issues/comments/149350968","html_url":"https://github.com/sindresorhus/globals/pull/58#issuecomment-149350968","issue_url":"https://api.github.com/repos/sindresorhus/globals/issues/58","id":149350968,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T21:21:01Z","updated_at":"2015-10-19T21:21:01Z","body":"@ArnaudBuchholz  There's a slight but important difference between what you're saying and what I'm saying.\r\n\r\nPhantomJS is comprised of *two* JavaScript runtimes. There's the one in the browser (and hence, has all the browser globals), but there's also the scripting engine you use to script PhantomJS. For instance: https://github.com/ariya/phantomjs/blob/master/examples/arguments.js\r\n\r\nThis script does not run within the browser, instead it runs in PhantomJS's scripting engine.\r\n\r\nThe `phantomjs` entry in `globals` refers only to the latter, so before can add `window`, we need to know that it actually exists there."}}