Files
node/test/parallel
Michaël Zasso 99a79e32a6 fs: fix fs.promises.writeFile with typed arrays
Before this change, only the first part of typed arrays which have more
than 1 byte per element (e.g. Uint16Array) would be written.
This also removes the use of the `slice` method to avoid unnecessary
copying the data.

Fixes: https://github.com/nodejs/node/issues/35343

PR-URL: https://github.com/nodejs/node/pull/35376
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2020-09-29 11:54:35 -04:00
..
2020-06-18 08:06:34 -07:00
2020-01-03 01:44:54 +01:00
2019-04-16 03:37:03 +02:00
2020-03-30 10:18:58 +02:00
2020-03-30 10:18:58 +02:00
2020-06-30 09:34:24 -07:00
2019-03-23 02:55:54 +01:00
2019-11-13 17:04:22 +00:00
2020-01-03 01:44:54 +01:00
2020-07-16 17:08:56 -04:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-12-25 12:24:42 +01:00
2019-12-25 12:24:42 +01:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2020-03-18 16:37:20 -07:00
2020-02-09 13:36:39 +01:00
2020-04-07 16:30:14 +01:00
2020-04-07 16:30:14 +01:00
2020-03-19 10:56:45 +01:00