archives

« Bugzilla Issues Index

#3046 — 24.1.4.3 ArrayBuffer.prototype.slice: Check new ArrayBuffer is not same instance


24.1.4.3 ArrayBuffer.prototype.slice ( start , end )

Add check that `new` is not the same instance as `O`, otherwise CopyDataBlockBytes will throw an assertion error.

Test case:
---
let buf = new ArrayBuffer(10);
buf.constructor = function Constructor(len) {
return buf;
};
buf.slice(0);
---


fixed in rev27 editor's draft


fixed in rev27 draft