blob: e92b7013c8298eb94eb341033e202634cd25cc78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |jit-test| skip-if: !this.SharedArrayBuffer
// Test that the SharedArrayBuffer memory is properly zeroed.
function f() {
var x = new SharedArrayBuffer(4096);
var y = new Int32Array(x);
assertEq(y[0], 0);
assertEq(y[1], 0);
assertEq(y[1023], 0);
}
f();
|