| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../resources/js-test.js"></script> | |
| 4 <script src="resources/webgl-test.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <div id="description"></div> | |
| 8 <div id="console"></div> | |
| 9 | |
| 10 <script> | |
| 11 | |
| 12 description('Verify that reassigning typed array constructor does not crash.'); | |
| 13 | |
| 14 <!-- The following used to cause a crash in Chrome --> | |
| 15 Uint8Array = 0; | |
| 16 Uint16Array = "string"; | |
| 17 Uint32Array = function() {}; | |
| 18 Int16Array = function() {}; | |
| 19 Int16Array.prototype.set = 0; | |
| 20 new Float64Array(function () {}); | |
| 21 new Float32Array([1, 2, 3], 1); | |
| 22 new Int16Array(function() {}); | |
| 23 testPassed("reassigning typed array constructor did not crash"); | |
| 24 | |
| 25 </script> | |
| 26 | |
| 27 <script> | |
| 28 </script> | |
| 29 | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |