()
| 56 | } |
| 57 | |
| 58 | async function testBytesAsyncSAB() { |
| 59 | const sab = new SharedArrayBuffer(5); |
| 60 | new Uint8Array(sab).set([104, 101, 108, 108, 111]); // 'hello' |
| 61 | const data = await bytes(from(sab)); |
| 62 | assert.deepStrictEqual(data, new Uint8Array([104, 101, 108, 108, 111])); |
| 63 | } |
| 64 | |
| 65 | function testTextSyncSAB() { |
| 66 | const sab = new SharedArrayBuffer(5); |
no test coverage detected
searching dependent graphs…