Files
node/test/parallel
Ben Noordhuis b2b9d11a14 src: fix fs.write() externalized string handling
* Respect `encoding` argument when the string is externalized.

* Copy the string when the write request can outlive the externalized
  string.

This commit removes `StringBytes::GetExternalParts()` because it is
fundamentally broken.

Fixes: https://github.com/nodejs/node/issues/18146
PR-URL: https://github.com/nodejs/node/pull/18216
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2018-01-23 19:17:39 +01:00
..
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2018-01-03 08:45:58 -08:00
2017-11-26 08:47:33 -08:00
2017-11-10 14:27:52 -05:00
2017-11-26 08:57:35 -08:00
2018-01-17 14:33:20 +01:00