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

ReferenceError: 'Uint8Array' is undefined - IE 9 #41

Closed
swanidhi opened this issue May 26, 2015 · 8 comments
Closed

ReferenceError: 'Uint8Array' is undefined - IE 9 #41

swanidhi opened this issue May 26, 2015 · 8 comments

Comments

@swanidhi
Copy link

I got this error while trying to use it on IE 9 for a download file functionality.

ReferenceError: 'Uint8Array' is undefined

@Ashot72
Copy link

Ashot72 commented May 27, 2015

I am getting the same error on IE 9

@vlvagerviwager
Copy link

IE 9 doesn't support typed arrays such as Uint8Array. I'm using this polyfill as a solution: https://github.com/inexorabletash/polyfill/blob/master/typedarray.js

@swanidhi
Copy link
Author

swanidhi commented Jun 4, 2015

That did take off that error from the console. But then I got this
Error: The data area passed to a system call is too small.

@donwan
Copy link

donwan commented Sep 8, 2015

I think the problem is that IE9 doesn't even like it if you test for existence using type (line 192). I changed both occurrences of "if (UintBArray && ..." to "if (typeof UnitBArray != 'undefined' && ..." and was able to get through it. Blob.js had "else" clauses for the case where UintBArray doesn't exist but IE9 stops before getting to it.

@ghost
Copy link

ghost commented Nov 4, 2015

Hello guys, I have a similar problem with this plugin.
I have to make Blob work on IE9 too, and when I want to use this plugin I get the same undefined error. I tried the mentioned "typedarray" plugin but it throws this error (when used with the Blob.js):
"Unable to get value of the property 'slice': object is null or undefined" (line 171 character 4)
It seems the "FakeBlob" wants to slice my data but the start and end variables are both undefined. Which makes me assume that the Blob.js can't read properly the unofficial uint8array conversion (because in debug mode the uint8array object seems good before I try to make a blob from it).

Any ideas about this error? Thanks in advance!

@chandramuralis
Copy link

@donwan Submitted a Pull Request #48 for this issue. Might still require typedarray polyfill for fixing this issue

@roger2hk
Copy link

The error goes away after adding the polyfill in IE 9 but the download functionality is still not working. For details, please refer to #48.

This issue should be closed.

@eligrey eligrey closed this as completed Jan 12, 2017
@eligrey
Copy link
Owner

eligrey commented Jan 12, 2017

@roger2hk got it. thanks

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

No branches or pull requests

7 participants