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

fix: fix edge case error handling on ie 11 #112

Merged
merged 1 commit into from
Nov 17, 2020
Merged

Conversation

brandonocasey
Copy link
Contributor

Apparently we never set up browserstack for this project so we only ever tested on chrome/firefox/nodejs. With the switch to github ci in #111 ie 11 started to fail.

let mpd;

try {
xml = parser.parseFromString(manifestString, 'application/xml');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IE 11 throws on invalid xml - which isn't illogical - it's just not the error that we want to throw. We want our custom DASH_INVALID_XML error.

@@ -6,6 +6,10 @@ export const merge = (...objects) => {

return objects.reduce((result, source) => {

if (typeof source !== 'object') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IE11 doesn't like when you call Object.keys on a non-object.

@brandonocasey brandonocasey merged commit 23040c1 into main Nov 17, 2020
@brandonocasey brandonocasey deleted the test/ie-11 branch November 17, 2020 20:25
RomeroDiver pushed a commit to Arc-Soft/mpd-parser that referenced this pull request Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants