« Bugzilla Issues Index
#4544 — 22.2.1.5: Handle negative zero byteOffset
- bug_id:
4544
- creation_ts:
2015-10-08 09:58:00 -0700
- short_desc:
22.2.1.5: Handle negative zero byteOffset
- delta_ts:
2015-10-26 12:51:36 -0700
- product:
ECMA-262 Edition 6
- component:
technical issues
- version:
unspecified
- 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
- cc:
brterlso
- commentid:
14799
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-10-08 09:58:47 -0700
22.2.1.5 %TypedArray% ( buffer [ , byteOffset [ , length ] ] )
Add after step 9:
---
If offset is -0, let offset be +0.
---
This avoids using a double for the internal representation of typed array's [[ByteOffset]] slot. Implementations tested (Edge, SM, JSC, V8, Nashorn) already convert -0 to +0.
- commentid:
14877
- comment_count:
1
- who:
Brian Terlson
- bug_when:
2015-10-26 12:51:36 -0700
Fixed in ES2016 Draft (2d1ed20).