es6-shim
es6-shim copied to clipboard
IE10 and others: ArrayBuffer missing prototype and getter
Similar to the DataView issue. https://github.com/paulmillr/es6-shim/issues/385 Listed as compatible on MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
try {
console.log(ArrayBuffer.prototype.byteLength);
} catch (e) {
console.log(e);
}
var a = Object.getPrototypeOf(new ArrayBuffer(4));
console.log(a);
var x = Object.getOwnPropertyDescriptor(a, 'byteLength').get;
console.log(x);
console.log(x.call(new ArrayBuffer(4)));
http://jsfiddle.net/Xotic750/vfL7zd0b/2/
https://github.com/paulmillr/es6-shim/issues/385#issuecomment-164314707