blob: 216999bfa4a7871d65bfa09f141d00bc46fa721a [file] [log] [blame]
Test that DataView does not crash with bad offset or length.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS view = new DataView(array.buffer, -4500000000) threw exception RangeError: byteOffset cannot be negative.
PASS view = new DataView(array.buffer, -4500000000, 4500000000) threw exception RangeError: byteOffset cannot be negative.
PASS successfullyParsed is true
TEST COMPLETE