summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/crash/file_texImage2D.html
blob: 370b0085720a85a2656bf24a7ded96350c5a4743 (plain)
1
2
3
4
5
6
7
8
<!doctype html>
<canvas></canvas>
<script>
var canvas = document.body.firstChild,
    gl = canvas.getContext("experimental-webgl");
gl.texImage2D(0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
gl.texSubImage2D(0, 0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
</script>