1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-13 02:52:54 -05:00
denoland-deno/ext/node/polyfills/_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
..
_fs_access.ts Revert "feat(fmt): sort type-only named import/exports last" (#25705) 2024-09-18 13:54:52 +00:00
_fs_appendFile.ts chore: update deno_lint for CI (#21802) 2024-01-05 15:03:06 +00:00
_fs_chmod.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_chown.ts Revert "feat(fmt): sort type-only named import/exports last" (#25705) 2024-09-18 13:54:52 +00:00
_fs_close.ts feat: deprecate Deno.close() (#22066) 2024-01-24 15:59:55 +01:00
_fs_common.ts chore: update dlint to v0.68.0 for internal (#26711) 2024-11-04 12:17:11 -05:00
_fs_constants.ts fix(ext/node): Add missing node:fs and node:constants exports (#25568) 2024-09-11 00:37:23 +00:00
_fs_copy.ts fix(node/fs): copyFile with COPYFILE_EXCL should not throw if the destination doesn't exist (#26360) 2024-10-17 19:51:15 +00:00
_fs_cp.js fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_cp.js (#24320) 2024-06-24 16:17:26 +10:00
_fs_dir.ts fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_dir.ts (#24319) 2024-06-24 06:22:55 +00:00
_fs_dirent.ts fix: revert accidentally added parentPath on DirEntry (#24438) 2024-07-04 20:58:30 -04:00
_fs_exists.ts perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
_fs_fdatasync.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_fstat.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_fsync.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_ftruncate.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_futimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_lchown.ts Revert "feat(fmt): sort type-only named import/exports last" (#25705) 2024-09-18 13:54:52 +00:00
_fs_link.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_lstat.ts fix(ext/node): add throwIfNoEntry option in fs.lstatSync (#24006) 2024-05-28 12:24:54 +02:00
_fs_lutimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_mkdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_mkdtemp.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_open.ts chore: update dlint to v0.68.0 for internal (#26711) 2024-11-04 12:17:11 -05:00
_fs_opendir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_read.ts fix(ext/node): internal buffer length in readSync (#26064) 2024-10-08 10:41:32 +00:00
_fs_readdir.ts fix: revert accidentally added parentPath on DirEntry (#24438) 2024-07-04 20:58:30 -04:00
_fs_readFile.ts fix(node/fs): missing uv error context for readFile (#27011) 2024-11-22 22:42:27 +01:00
_fs_readlink.ts fix(ext/node): properly map reparse point error in readlink (#26375) 2024-10-18 10:11:06 -07:00
_fs_readv.ts chore: update dlint to v0.68.0 for internal (#26711) 2024-11-04 12:17:11 -05:00
_fs_realpath.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rename.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rm.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rmdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_stat.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.js feat(node): implement fs.statfs() (#22862) 2024-03-13 10:57:59 +00:00
_fs_symlink.ts fix(ext/node): support junction symlinks on Windows (#22762) 2024-03-09 09:07:29 +05:30
_fs_truncate.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_unlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_utimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_watch.ts fix: rename watch event missing (#24893) 2024-08-07 18:15:57 +02:00
_fs_write.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_write.mjs BREAKING(fs): remove Deno.seek[Sync]() (#25449) 2024-09-05 20:37:28 +10:00
_fs_writeFile.ts fix(ext/node): add FileHandle#writeFile (#25555) 2024-09-11 11:08:40 +02:00
_fs_writev.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_writev.mjs BREAKING(fs): remove Deno.seek[Sync]() (#25449) 2024-09-05 20:37:28 +10:00