Open Xotic750 opened 8 years ago
Opera 12.16, also listed in MDN, also seems to have similar problems. Safari 5.1, listed in MDN, also seems the same. Chrome 26, similar. FireFox 15, also.
Currently the es6-shim
doesn't attempt to detect, patch, or implement anything relating to Typed Arrays, including ArrayBuffer and DataView.
Hopefully some day though, huh?
Possibly never - their sole use case is for performance, and you can't get that performance without native support.
Hmm. This forces me to rethink my isArrayBuffer
/isDataView
routines. I changed them to to detect ES6 Arraybuffers (which they do just fine), and if es6-shim can't or has no plan on fixing such issues with these legacy implementations then I'm back to the "when is an ArrayBuffer not" dilemma. :/
I can't think of a simple way to fix the deficiencies anyhow.
IE10's DataView does not appear to be ES6 compliant. It's listed as being compatible on MDN. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteOffset
http://jsfiddle.net/Xotic750/08zng894/3/