Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardNodeJSworker_threads memory sharingSingle-choice MCQ

What does this worker-side code log, given how transferred ArrayBuffers behave on the sending side?

const ab = new ArrayBuffer(8); parentPort.postMessage(ab, [ab]); console.log(ab.byteLength);