MCPcopy Index your code
hub / github.com/nodejs/node / testTextSyncSAB

Function testTextSyncSAB

test/parallel/test-stream-iter-sharedarraybuffer.js:65–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65function 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
72async function testTextAsyncSAB() {
73 const sab = new SharedArrayBuffer(5);

Calls 3

textSyncFunction · 0.85
fromSyncFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…