[Webkit-unassigned] [Bug 45487] New: TypedArray should throw exception if length not a multiple of element size
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 9 13:21:06 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45487
Summary: TypedArray should throw exception if length not a
multiple of element size
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P3
Component: WebGL
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: enne at google.com
>From the Typed Array spec: "If length is not explicitly specified, the length of the ArrayBuffer minus the byteOffset must be a multiple of the element size of the specific type, or an exception is raised."
Therefore, this code should throw an exception, but currently doesn't:
var buffer = new ArrayBuffer(1);
var buf = new Uint16Array(buffer);
Once fixed, this test case should be added to the Khronos array-unit-tests.html conformance test.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list