()
| 49 | // ============================================================================= |
| 50 | |
| 51 | function testBytesSyncSAB() { |
| 52 | const sab = new SharedArrayBuffer(5); |
| 53 | new Uint8Array(sab).set([104, 101, 108, 108, 111]); // 'hello' |
| 54 | const data = bytesSync(fromSync(sab)); |
| 55 | assert.deepStrictEqual(data, new Uint8Array([104, 101, 108, 108, 111])); |
| 56 | } |
| 57 | |
| 58 | async function testBytesAsyncSAB() { |
| 59 | const sab = new SharedArrayBuffer(5); |
no test coverage detected
searching dependent graphs…