()
| 70 | } |
| 71 | |
| 72 | async function testTextAsyncSAB() { |
| 73 | const sab = new SharedArrayBuffer(5); |
| 74 | new Uint8Array(sab).set([104, 101, 108, 108, 111]); // 'hello' |
| 75 | const result = await text(from(sab)); |
| 76 | assert.strictEqual(result, 'hello'); |
| 77 | } |
| 78 | |
| 79 | function testArrayBufferSyncSAB() { |
| 80 | const sab = new SharedArrayBuffer(4); |
no test coverage detected
searching dependent graphs…