()
| 63 | } |
| 64 | |
| 65 | function testTextSyncSAB() { |
| 66 | const sab = new SharedArrayBuffer(5); |
| 67 | new Uint8Array(sab).set([104, 101, 108, 108, 111]); // 'hello' |
| 68 | const result = textSync(fromSync(sab)); |
| 69 | assert.strictEqual(result, 'hello'); |
| 70 | } |
| 71 | |
| 72 | async function testTextAsyncSAB() { |
| 73 | const sab = new SharedArrayBuffer(5); |
no test coverage detected
searching dependent graphs…