WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / typed_arrays_DataView_Int16.js
1 function test() {
2
3 var buffer = new ArrayBuffer(64);
4 var view = new DataView(buffer);
5 view.setInt16(0, 0x8000);
6 return view.getInt16(0) === -0x8000;
7       
8 }
9
10 if (!test())
11     throw new Error("Test failed");
12