{"action":"closed","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/14279","repository_url":"https://api.github.com/repos/ariya/phantomjs","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/14279/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/14279/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/14279/events","html_url":"https://github.com/ariya/phantomjs/issues/14279","id":154669915,"number":14279,"title":"version 2.1.1 can't catch some kind of javascript errors","user":{"login":"catalsdevelop","id":10252221,"avatar_url":"https://avatars.githubusercontent.com/u/10252221?v=3","gravatar_id":"","url":"https://api.github.com/users/catalsdevelop","html_url":"https://github.com/catalsdevelop","followers_url":"https://api.github.com/users/catalsdevelop/followers","following_url":"https://api.github.com/users/catalsdevelop/following{/other_user}","gists_url":"https://api.github.com/users/catalsdevelop/gists{/gist_id}","starred_url":"https://api.github.com/users/catalsdevelop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalsdevelop/subscriptions","organizations_url":"https://api.github.com/users/catalsdevelop/orgs","repos_url":"https://api.github.com/users/catalsdevelop/repos","events_url":"https://api.github.com/users/catalsdevelop/events{/privacy}","received_events_url":"https://api.github.com/users/catalsdevelop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T09:26:29Z","updated_at":"2016-05-21T16:15:59Z","closed_at":"2016-05-21T16:15:59Z","body":"hi \r\nphantomjs version 2.1.1\r\n\r\ncode:\r\n\r\n```\r\nvar webpage = require('webpage');\r\nvar page = webpage.create();\r\npage.onError = function(message){\r\n    console.log(message)\r\n}\r\npage.onConsoleMessage = function(message){\r\n    console.log(message)\r\n}\r\npage.open('https://www.catals.com/test/test.html', function(){\r\n    setTimeout(function(){\r\n        phantom.exit();\r\n    }, 3000);\r\n});\r\n```\r\nsample url\r\n\r\n1. http://sale.jd.com/act/NyTxIgU4XM1iGaOc.html\r\n2. http://sale.jd.com/m/act/AY3pEOVBqdcGRi.html\r\n3. https://www.catals.com/test/test.html\r\n\r\nurl1 contains an inline error\r\nurl2 and url3 contains an external error\r\nurl1 and url2 have a same error\r\n\r\nresult is \r\nurl1 url2 can't catch\r\nurl3 worked fine\r\n\r\nIs my code something wrong or is this a bug? @Vitallium @zackw"}}
{"actor":{"display_login":"Vitallium"}}