Skip to content

prevent our loggers from throwing their own errors in a few more cases #3137

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

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

alexcjohnson
Copy link
Collaborator

cc @antoinerg - a sort of followup to #3114

try {
// `this` should always be console, since here we're always
// applying a method of the console object.
f.apply(console, args);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In current browsers this works anyway, but console is really the right this here and some old browsers (Chrome 51 and presumably before) need it to be correct. See eg https://github.com/plotly/phoenix-integration/issues/223#issuecomment-431863801

@antoinerg
Copy link
Contributor

Looks good to me! Maybe wait for the CI tests to run and then 💃 !

@alexcjohnson alexcjohnson merged commit 85c42aa into master Oct 22, 2018
@alexcjohnson alexcjohnson deleted the robust-log branch October 22, 2018 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants