3.1.20
* This function appends to the existing file, if it exists. * Handle a string input, not just a typed array. * Fix the heap allocation logic (we malloced but were missing the copy). Fixes #17230
* This function appends to the existing file, if it exists. * Handle a string input, not just a typed array. * Fix the heap allocation logic (we malloced but were missing the copy). Fixes #17230