whoever wrote the line originally mixed up the two method signatures for writeSync. The reason it worked to begin with is that the length argument is ignore if not a number.
add a test to ensure correctness, since non-trivial effort is required to test manually.
whoever wrote the line originally mixed up the two method signatures for writeSync. The reason it worked to begin with is that the length argument is ignore if not a number.
add a test to ensure correctness, since non-trivial effort is required to test manually.