« Bugzilla Issues Index
#3678 — 24.1.1.4 CloneArrayBuffer: Add IsDetachedBuffer check after steps 10-11
- bug_id:
3678
- creation_ts:
2015-01-25 10:36:00 -0800
- short_desc:
24.1.1.4 CloneArrayBuffer: Add IsDetachedBuffer check after steps 10-11
- delta_ts:
2015-02-02 18:38:57 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 31: January 15, 2015 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
11733
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-01-25 10:36:26 -0800
24.1.1.4 CloneArrayBuffer( srcBuffer, srcByteOffset )
IsDetachedBuffer needs to be tested in case AllocateArrayBuffer detaches the ArrayBuffer `srcBuffer`.
---
class Buffer extends ArrayBuffer {
static get [Symbol.species]() {
return Object.defineProperty(function() { }.bind(), "prototype", {
get() {
detachArrayBuffer(buf);
return ArrayBuffer.prototype;
}
});
}
}
let buf = new Buffer(10);
let ta = new Int8Array(buf);
new Int8Array(ta);
---
- commentid:
11879
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-02 10:59:22 -0800
fixed in rev32 editor's draft
- commentid:
11990
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-02 18:38:57 -0800
fixed in rev32 draft