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
Post a Comment