1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/tests/unit_node/_fs
Marvin Hagemeister 50538ba35d
fix(node/fs): missing uv error context for readFile (#27011)
Dart's Node wrapper code in `npm:sass` does string slicing on the thrown
error message which broke because of our missing uv error context.

Code in question:

```js
_systemErrorToFileSystemException0(callback) {
  var error, t1, exception, t2;
  try {
    t1 = callback.call$0();
    return t1;
  } catch (exception) {
    error = A.unwrapException(exception);
    if (!type$.JsSystemError._is(error))
      throw exception;
    t1 = error;
    t2 = J.getInterceptor$x(t1);
    throw A.wrapException(new A.FileSystemException0(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
  }
}
```

Fixes https://github.com/denoland/deno/issues/26994
2024-11-22 22:42:27 +01: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 BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +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 BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +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 BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00
_fs_fstat_test.ts BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00
_fs_fsync_test.ts BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00
_fs_ftruncate_test.ts BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00
_fs_futimes_test.ts BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +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 fix(node/fs): missing uv error context for readFile (#27011) 2024-11-22 22:42:27 +01: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 feat(ext/fs): add ctime to Deno.stats and use it in node compat layer (#24801) 2024-11-13 13:35:04 +09: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 BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00
_fs_writeFile_test.ts BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00