`spawn.stdout.clearLine` throws