Skip to content
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

Improve Logging for IE < 11 #3356

Closed
wants to merge 5 commits into from

Conversation

misteroneill
Copy link
Member

Description

IE11 introduced expandable objects in the console. Previously, everything was .join()ed and, therefore, objects came through as [object Object], which is not useful. This improves the ES6-ification of the log module and passes objects and arrays through JSON.stringify() before logging them in IE10 and lower.

Some opportunities for ES6 brevity were left out because JSHint does not like them; though, they would pass videojs-standard.

Specific Changes proposed

  • Modifications to the existing utils/log module.

Requirements Checklist

  • Feature implemented / Bug fixed
  • Unit Tests updated or fixed
  • Reviewed by Two Core Contributors

@misteroneill misteroneill added enhancement minor This PR can be added to a minor release. It should not be added to a patch release. labels Jun 2, 2016
@gkatsev
Copy link
Member

gkatsev commented Jun 20, 2016

Can you add a test for the JSON.stringify functionality?

@gkatsev gkatsev removed the confirmed label Jun 20, 2016
IE11 introduced expandable objects in the console. Previously,
everything was .join()ed and, therefore, objects came through as
"[object Object]", which is not useful. This improves the ES6-ification
of the log module and passes objects and arrays through JSON.stringify
before logging them in IE10 and lower.

Some opportunities for ES6 brevity were left out because JSHint does not
like them; though, they would pass videojs-standard.
@misteroneill
Copy link
Member Author

You're right. 😄 I added a test for that behavior. Unfortunately, it meant exposing the logByType function and giving it an optional argument only used for testing, which broke TextTrack tests (which have been fixed).

Rebased on master too.

@gkatsev gkatsev closed this in 13d349b Jul 18, 2016
@misteroneill misteroneill deleted the better-ie-logging branch July 19, 2016 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement minor This PR can be added to a minor release. It should not be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants