« Bugzilla Issues Index
#4050 — 22.2.3.22.1, 2 %TypedArray%.prototype.set: Unnecessary application of min()
- bug_id:
4050
- creation_ts:
2015-02-21 08:33:00 -0800
- short_desc:
22.2.3.22.1, 2 %TypedArray%.prototype.set: Unnecessary application of min()
- delta_ts:
2015-03-04 18:58:13 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 34: February 20, 2015 Release Candidate 1
- 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:
13224
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-02-21 08:33:35 -0800
22.2.3.22.1 %TypedArray%.prototype.set (array [ , offset ] )
22.2.3.22.2 %TypedArray%.prototype.set(typedArray [, offset ] )
Per 22.2.3.22.1 step 21 `srcLength + targetOffset ≤ targetLength`. That means `srcLength ≤ targetLength - targetOffset`, so `min(srcLength, targetLength – targetOffset) = srcLength`.
22.2.3.22.1 - step 24
> Let limit be targetByteIndex + targetElementSize × srcLength.
22.2.3.22.2 - step 27
> Let limit be targetByteIndex + targetElementSize × srcLength.
- commentid:
13372
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-25 18:03:34 -0800
fixed in rev35 editor's draft
- commentid:
13477
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-03-04 18:58:13 -0800
fixed in rev35