Originally since we used the unsigned types we don't have the logic to check if these inputs are non-negative or not. Now we use the correct signed types, we should check if they are negative or not and generate an INVALID_VALUE error if they are.
Created attachment 80966 [details] Patch
The test is in sync with khronos.
Comment on attachment 80966 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=80966&action=review Looks good; one more test case is needed though. > LayoutTests/fast/canvas/webgl/buffer-data-array-buffer.html:44 > +glErrorShouldBe(gl, gl.INVALID_VALUE); Please also test the bufferSubData entry point taking ArrayBufferView.
Will do.
Committed r77421: <http://trac.webkit.org/changeset/77421>