()
| 23 | // ============================================================================= |
| 24 | |
| 25 | function testFromSyncSAB() { |
| 26 | const sab = new SharedArrayBuffer(4); |
| 27 | new Uint8Array(sab).set([10, 20, 30, 40]); |
| 28 | const batches = []; |
| 29 | for (const batch of fromSync(sab)) { |
| 30 | batches.push(batch); |
| 31 | } |
| 32 | assert.strictEqual(batches.length, 1); |
| 33 | assert.deepStrictEqual(batches[0][0], new Uint8Array([10, 20, 30, 40])); |
| 34 | } |
| 35 | |
| 36 | async function testFromAsyncSAB() { |
| 37 | const sab = new SharedArrayBuffer(4); |
no test coverage detected
searching dependent graphs…