jdk-24/nashorn/test/script/basic/JDK-8036743.js.EXPECTED
Athijegannathan Sundararajan 5b954fdc5e 8036743: need ArrayBuffer constructor with specified data
Reviewed-by: attila, hannesw, lagergren
2015-05-26 13:49:45 +05:30

50 lines
654 B
Plaintext

abuf.byteLength = 4
Little endian? true
view[0] = 42
ba[0] = 42
ba[1] = 0
ba[2] = 0
ba[3] = 0
Little endian? false
view[0] = 42
ba[0] = 0
ba[1] = 0
ba[2] = 0
ba[3] = 42
Little endian? true
view[0] = 127
ba[0] = 127
ba[1] = 0
ba[2] = 0
ba[3] = 0
Little endian? false
view[0] = 127
ba[0] = 0
ba[1] = 0
ba[2] = 0
ba[3] = 127
Little endian? true
view[0] = 32767
ba[0] = -1
ba[1] = 127
ba[2] = 0
ba[3] = 0
Little endian? false
view[0] = 32767
ba[0] = 0
ba[1] = 0
ba[2] = 127
ba[3] = -1
Little endian? true
view[0] = 2147483647
ba[0] = -1
ba[1] = -1
ba[2] = -1
ba[3] = 127
Little endian? false
view[0] = 2147483647
ba[0] = 127
ba[1] = -1
ba[2] = -1
ba[3] = -1