1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/ext/node
Marvin Hagemeister 56e57c9428
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-28 15:47:22 +01:00
..
benchmarks fix(runtime): use more null proto objects again (#25040) 2024-09-06 12:52:59 +02:00
ops feat: permission stack traces in ops (#26938) 2024-11-20 21:24:04 +00:00
polyfills fix(node/fs): missing uv error context for readFile (#27011) 2024-11-28 15:47:22 +01:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml 2.1.1 (#26978) 2024-11-21 12:28:20 -05:00
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
global.rs feat(cli): give access to process global everywhere (#25291) 2024-09-04 11:04:06 +02:00
lib.rs feat(ext/node): perf_hooks.monitorEventLoopDelay() (#26905) 2024-11-19 16:49:25 +05:30
polyfill.rs fix(ext/node): register node:wasi built-in (#25134) 2024-08-22 09:03:52 +05:30
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00

deno_node

require and other node related functionality for Deno.