{"action":"created","issue":{"url":"https://api.github.com/repos/TooTallNate/node-pac-resolver/issues/5","labels_url":"https://api.github.com/repos/TooTallNate/node-pac-resolver/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/TooTallNate/node-pac-resolver/issues/5/comments","events_url":"https://api.github.com/repos/TooTallNate/node-pac-resolver/issues/5/events","html_url":"https://github.com/TooTallNate/node-pac-resolver/issues/5","id":58298707,"number":5,"title":"Browserify issue with vm.runInNewContext","user":{"login":"RichardLitt","id":910753,"avatar_url":"https://avatars.githubusercontent.com/u/910753?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardLitt","html_url":"https://github.com/RichardLitt","followers_url":"https://api.github.com/users/RichardLitt/followers","following_url":"https://api.github.com/users/RichardLitt/following{/other_user}","gists_url":"https://api.github.com/users/RichardLitt/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardLitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardLitt/subscriptions","organizations_url":"https://api.github.com/users/RichardLitt/orgs","repos_url":"https://api.github.com/users/RichardLitt/repos","events_url":"https://api.github.com/users/RichardLitt/events{/privacy}","received_events_url":"https://api.github.com/users/RichardLitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-20T01:29:19Z","updated_at":"2015-02-20T01:59:24Z","closed_at":null,"body":"This line in `index.js` is breaking in my build:\r\n\r\n``` \r\nvar wg = vm.runInNewContext(regenerator('', { includeRuntime: true }) + ';wrapGenerator');\r\n```\r\n\r\nI've no idea why. I seem to be able to just comment it out and everything runs fine, so I'm not sure exactly what it is doing. The issue in the terminal is: `Uncaught TypeError: Cannot set property 'wrapGenerator' of undefined`. Any thoughts?"},"comment":{"url":"https://api.github.com/repos/TooTallNate/node-pac-resolver/issues/comments/75177411","html_url":"https://github.com/TooTallNate/node-pac-resolver/issues/5#issuecomment-75177411","issue_url":"https://api.github.com/repos/TooTallNate/node-pac-resolver/issues/5","id":75177411,"user":{"login":"TooTallNate","id":71256,"avatar_url":"https://avatars.githubusercontent.com/u/71256?v=3","gravatar_id":"","url":"https://api.github.com/users/TooTallNate","html_url":"https://github.com/TooTallNate","followers_url":"https://api.github.com/users/TooTallNate/followers","following_url":"https://api.github.com/users/TooTallNate/following{/other_user}","gists_url":"https://api.github.com/users/TooTallNate/gists{/gist_id}","starred_url":"https://api.github.com/users/TooTallNate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TooTallNate/subscriptions","organizations_url":"https://api.github.com/users/TooTallNate/orgs","repos_url":"https://api.github.com/users/TooTallNate/repos","events_url":"https://api.github.com/users/TooTallNate/events{/privacy}","received_events_url":"https://api.github.com/users/TooTallNate/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T01:59:24Z","updated_at":"2015-02-20T01:59:24Z","body":"I think it's a `vm-browserify` bug actually. See https://github.com/substack/vm-browserify/pull/13.\r\n\r\nWith that patch applied, I was able to get browserified PacResolver working correctly (well, I wouldn't expect DNS or stuff like that to work, but at least the function compiled and executed with a dummy return value correctly)."}}