es6-shim icon indicating copy to clipboard operation
es6-shim copied to clipboard

IE10 and others: ArrayBuffer missing prototype and getter

Open Xotic750 opened this issue 9 years ago • 1 comments

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/

Xotic750 avatar Dec 13 '15 21:12 Xotic750

https://github.com/paulmillr/es6-shim/issues/385#issuecomment-164314707

ljharb avatar Dec 14 '15 00:12 ljharb