-
-
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
JS errors : calling native console.log() failed #482
Comments
I managed to understand the problem. It's when a website (or a JS library) overrides some JSON related functions.
These problems got fixed in later releases. Some example websites: Not an easy bug to fix. Maybe the cleanest way would be to add some |
@gmetais, thanks for investigating. phantomas already copies the native |
Be careful, there will still be a problem with: Array.prototype.toJSON
Object.prototype.toJSON
Hash.prototype.toJSON
String.prototype.toJSON By default, they don't exist in the browser. But the That's the touchy part of this fix. |
Awesome, thank you! |
For your information, this bug is still occurring on https://www.washingtonpost.com For the moment I can't find the reason :( |
Hi,
Phantomas generates many errors when running on this page: http://www.lafermeduweb.net
The errors seems to be internal, but i've been struggling for 2 hours looking for the reason.
Here is a part of the log in verbose mode:
Any idea why it is failing?
The text was updated successfully, but these errors were encountered: