As far as I can tell, node silently truncates (I really don't like that behavior). So does, rust, but there's an issue to change that: https://github.com/mozilla/rust/issues/9238