blob: c0805a703fd98081a932f38692ae2e59630a28a7 [file] [log] [blame]
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
<script src="resources/webgl-test.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script>
description('Verify that reassigning typed array constructor does not crash.');
<!-- The following used to cause a crash in Chrome -->
Uint8Array = 0;
Uint16Array = "string";
Uint32Array = function() {};
Int16Array = function() {};
Int16Array.prototype.set = 0;
new Float64Array(function () {});
new Float32Array([1, 2, 3], 1);
new Int16Array(function() {});
testPassed("reassigning typed array constructor did not crash");
</script>
<script src="../../../resources/js-test-post.js"></script>
<script>
</script>
</body>
</html>