blob: 96a67261adc3a49ff35b0dfc8849e2b35e382eb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<html>
<head>
<script src="../../../resources/js-test.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>
</script>
</body>
</html>
|