test bad argument17ms ‣
const {gl} = createContext2();
if (!gl) {
return;
}
gl.clearBufferfv(gl.COLOR, 0, [0, 0, 0, 0]);
gl.clearBufferfv(gl.COLOR, 0, new Float32Array([0, 0, 0, 0]), 0);
assertThrowsWith(() => {
gl.clearBufferfv(gl.COLOR, 'foo', [0, 0, 0, 0]);
}, [/not a number/]);
assertThrowsWith(() => {
gl.clearBufferfv(gl.COLOR, 0, 0);
}, [/not an array or typedarray/]);