-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jserrors generate by injected Code ? #230
Comments
Hi @jedi4ever, Thanks for reporting an error. Can you log the |
@macbre it's really hard to output something there. As the console.log is used to write the output. Do you have an idea how I can always have the good function or protect it from being changed? |
URL I'm testing is - http://eurosong.een.be/#aflevering/3 |
Chrome console for the page you've mentioned above reveals possible cause: > console.log
function () {} |
Works much better when run as:
The JS code that overrides the whole |
Nice spotting ; would it make sense to keep a pointer to the console.log globally at the top of the page? So it can't really get overwritten? |
It is actually, as |
The only sensible solution I can think of is to emit more meaningful error message:
Modifying native objects and methods in JavaScript is asking for troubles :) |
Was throwing "TypeError: Attempting to change value of a readonly property."
phantomas nodejs v0.10.7 +0ms
phantomas PhantomJS v1.9.7
phantomas phantomas v0.12.1
I was testing on a site and only got partial content and jserrors.
The page rendered ok in phantomjs screenshot but failed in phantomas.
It mentioned
Type Errors
andParse Errors
. (See below)When disabling the origConsoleLog line in the sendMsg function on scope.js , it worked.
Not sure what was happening there. But it worked :)
The text was updated successfully, but these errors were encountered: