blob: fea25e1fde5218344ad95753f6f75c80dc6b2970 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(function() {
var result = 0;
var d = new DataView(new ArrayBuffer(5));
for (var i = 0; i < 1000000; i++) {
d.setInt8(0, 4);
d.setInt8(1, 2);
d.setInt8(2, 6);
d.setInt16(0, 20);
result += d.getInt8(2) + d.getInt8(0);
}
if (result != 6000000)
throw "Bad result: " + result;
})();