Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSchild_process spawningSingle-choice MCQ

A spawnSync call sets maxBuffer to 10 bytes and the child writes 100 bytes to stdout. What does the returned result object contain?

const r = spawnSync('node', ['-e', 'process.stdout.write("x".repeat(100))'], { maxBuffer: 10 });