{"action":"opened","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/15006","repository_url":"https://api.github.com/repos/ariya/phantomjs","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/15006/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/15006/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/15006/events","html_url":"https://github.com/ariya/phantomjs/issues/15006","id":230915816,"number":15006,"title":"Phantom 2.1.1 chokes on string.startsWith()","user":{"login":"RichardNeill","id":556337,"avatar_url":"https://avatars3.githubusercontent.com/u/556337?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardNeill","html_url":"https://github.com/RichardNeill","followers_url":"https://api.github.com/users/RichardNeill/followers","following_url":"https://api.github.com/users/RichardNeill/following{/other_user}","gists_url":"https://api.github.com/users/RichardNeill/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardNeill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardNeill/subscriptions","organizations_url":"https://api.github.com/users/RichardNeill/orgs","repos_url":"https://api.github.com/users/RichardNeill/repos","events_url":"https://api.github.com/users/RichardNeill/events{/privacy}","received_events_url":"https://api.github.com/users/RichardNeill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-24T04:14:50Z","updated_at":"2017-05-24T04:14:50Z","closed_at":null,"body":"string.startsWith() has been part of javascript for sometime now. It's widely supported in modern browsers. However, it makes phantomJS fail rather badly. (Similar failures affect wkhtml2pdf).\r\n\r\nTo see it, look at the attached html file (a very simple test-case), and view it in a web browser. \r\nComment out either of the .startsWith() or .match() lines, and it works the same.\r\n\r\nThen try ./phantomjs rasterize.js ~/test.html test.pdf\r\nthe startsWith() line causes it to complain:\r\n  TypeError: undefined is not a function (evaluating 'aaa.startsWith(\"alpha\")')\r\n\r\n[test.txt](https://github.com/ariya/phantomjs/files/1024377/test.txt)\r\n"}}
{"actor":{"display_login":"RichardNeill"}}