[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / dataview-prototype-accessors.js
1 {
2     let buffer = new ArrayBuffer(10);
3     let view = new DataView(buffer);
4
5     if (view.byteOffset !== 0)
6         throw "byteoffest should be 0";
7
8     if (view.byteLength !== 10)
9         throw "byteLength should be 0"
10
11     if (view.buffer !== buffer)
12         throw "buffer should be the incomming buffer"
13
14     view = new DataView(buffer, 1, 1)
15
16     if (view.byteOffset !== 1)
17         throw "byteoffest should be 0";
18
19     if (view.byteLength !== 1)
20         throw "byteLength should be 0"
21
22     if (view.buffer !== buffer)
23         throw "buffer should be the incomming buffer"
24 }