1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 17:19:06 -05:00
denoland-deno/tests/unit_node/_fs
Nathan Whitaker ff4226a3cd
fix(node/fs): Use correct offset and length in node:fs.read and write (#25049)
My fix in #25030 was buggy, I forgot to pass the `byteOffset` and
`byteLength`. Whoops.

I also discovered that fs.read was not respecting the `offset` argument,
and we were constructing a new `Buffer` for the callback instead of just
passing the original one (which is what node does, and the @types/node
definitions also indicate the callback should get the same type).
Fixes #25028.
2024-08-16 09:48:57 -07:00
..
testdata chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
_fs_access_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_appendFile_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_chmod_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_chown_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_close_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_copy_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_dir_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_dirent_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_exists_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_fdatasync_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_fstat_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_fsync_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_ftruncate_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_futimes_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_handle_test.ts fix(node/fs): Use correct offset and length in node:fs.read and write (#25049) 2024-08-16 09:48:57 -07:00
_fs_link_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_lstat_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_mkdir_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_mkdtemp_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_open_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_opendir_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_read_test.ts fix(node/fs): Use correct offset and length in node:fs.read and write (#25049) 2024-08-16 09:48:57 -07:00
_fs_readdir_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_readFile_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_readlink_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_realpath_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_rename_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_rm_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_rmdir_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_stat_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_statfs_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_symlink_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_truncate_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_unlink_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_utimes_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
_fs_watch_test.ts fix(node/fs/promises): watch should be async iterable (#24805) 2024-07-31 13:07:49 +02:00
_fs_write_test.ts fix(node/fs): Use correct offset and length in node:fs.read and write (#25049) 2024-08-16 09:48:57 -07:00
_fs_writeFile_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00