« Bugzilla Issues Index
#3677 — 22.2.1.2 %TypedArray%: Swap steps 17.c and 17.d
- bug_id:
3677
- creation_ts:
2015-01-25 10:30:00 -0800
- short_desc:
22.2.1.2 %TypedArray%: Swap steps 17.c and 17.d
- delta_ts:
2015-02-02 18:39:01 -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:
11732
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-01-25 10:30:11 -0800
22.2.1.2 %TypedArray% ( typedArray )
Steps 17.c and 17.d need to be swapped in case AllocateArrayBuffer detaches the ArrayBuffer `srcData`.
---
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 Int16Array(ta); // <-- asserts in GetValueFromBuffer
---
- commentid:
11887
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-02 12:20:51 -0800
fixed in rev32 editor's draft
- commentid:
12020
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-02 18:39:01 -0800
fixed in rev32 draft