« Bugzilla Issues Index
#1680 — 15.13.7.2.1: Zero length DataViews not possible
  
  
  - bug_id:
    1680
  
 
  
  
  - creation_ts:
    2013-07-31 06:43:00 -0700
  
 
  
  
  - short_desc:
    15.13.7.2.1: Zero length DataViews not possible
  
 
  
  
  - delta_ts:
    2013-08-23 08:22:53 -0700
  
 
  
  
  - product:
    Draft for 6th Edition
  
 
  
  
  - component:
    technical issue
  
 
  
  
  - version:
    Rev 16: July 15, 2013 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:
    4656
  
 
  
  
  - comment_count:
    0
  
 
  
  
  - who:
    André Bargull
  
 
  
  
  - bug_when:
    2013-07-31 06:43:55 -0700
  
 
  
  
SpiderMonkey and V8 support and have explicit test cases for zero-length DataViews, but the current algorithm throws a RangeError in this case.
Change step 10 of 15.13.7.2.1 to :
10.  If offset > bufferByteLength, then throw a RangeError exception.
This is also consistent with allowing zero-length ArrayBuffer objects.
  
  
  - commentid:
    4955
  
 
  
  
  - comment_count:
    1
  
 
  
  
  - who:
    Allen Wirfs-Brock
  
 
  
  
  - bug_when:
    2013-08-16 16:28:33 -0700
  
 
  
  
fixed in rev17 editor's draft
  
  
  - commentid:
    5115
  
 
  
  
  - comment_count:
    2
  
 
  
  
  - who:
    Allen Wirfs-Brock
  
 
  
  
  - bug_when:
    2013-08-23 08:22:53 -0700
  
 
  
  
fixed in rev17, August 23, 2013 draft