Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Fixing TypeError: Invalid calling object in Edge #70

Closed
wants to merge 1 commit into from
Closed

Conversation

pavel-gatilov-epam
Copy link

I regret I was not able to reproduce the issue in automated tests. However, in my production project I observed TypeError 'Invalid calling object' in MS Edge when calling btoa. The same issue was raised in several projects, for example tus/tus-js-client#77. This change fixes the error.

Copy link

@kyemelianov kyemelianov left a comment

Choose a reason for hiding this comment

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

We have the same issue in IE11 after build product version.
IE11 can't use 'btoa' without window context.
It is easy reproduce in IE11:
({ btoa: window.btoa }).btoa('123') - return Error

@postatum
Copy link
Contributor

Closed via #150

@postatum postatum closed this Jul 17, 2020
@postatum
Copy link
Contributor

The fix is now released in version 4.3.2. Thank you for the contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants