javascript - Internet Explorer Error : SCRIPT5009: ArrayBuffer is undefined -


i receiving error in internet explorer 9 , under not occur on other browsers. it's:

script5009: 'arraybuffer' undefined

my code follows

    var rawlength = raw.length;     var array = new uint8array(new arraybuffer(rawlength));     for(i = 0; < rawlength; i++) {            array[i] = raw.charcodeat(i);             } 

the line breaks var array = new uint8array(new arraybuffer(rawlength));

does know if there solution or workaround this? require functionality work in browsers.

arraybuffer isn't supported until ie10 (and think shows it: http://caniuse.com/typedarrays).

you can use polyfill, , here's one: https://github.com/inexorabletash/polyfill/blob/master/typedarray.js

polyfill taken from: https://github.com/inexorabletash/polyfill


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -