archives

« Bugzilla Issues Index

#1680 — 15.13.7.2.1: Zero length DataViews not possible


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.


fixed in rev17 editor's draft


fixed in rev17, August 23, 2013 draft