javascript 0.1.13

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SharedArrayBuffer basic test
console.log("SharedArrayBuffer basic test");

let sab = new SharedArrayBuffer(16);
console.log("SharedArrayBuffer created, byteLength:", sab.byteLength);

let ta = new Int8Array(sab);
console.log("Int8Array length:", ta.length);

ta[0] = 42;
ta[15] = -1;
console.log("ta[0] =", ta[0], "ta[15] =", ta[15]);

console.log("SharedArrayBuffer basic test done");