3 <script src=
"../../../resources/js-test.js"></script>
6 <div id=
"description"></div>
7 <div id=
"console"></div>
10 description("Test that DataView does not crash with bad offset or length.");
12 var array
= new Uint8Array([164, 112, 157, 63]);
14 shouldThrow("view = new DataView(array.buffer, -4500000000)");
15 shouldThrow("view = new DataView(array.buffer, -4500000000, 4500000000)");
16 var value
= view
? view
.getFloat32(0, true) : 0;