1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/ext
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
..
broadcast_channel chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
cache chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
canvas chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
console chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
cron chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
crypto chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
fetch chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
ffi chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
fs chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
http chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
io chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
kv chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
napi chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
net chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
node fix(node/fs): missing uv error context for readFile (#27011) 2024-11-22 22:42:27 +01:00
tls chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
url chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
web chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
webgpu chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
webidl chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00
websocket fix(ext/websocket): don't throw exception when sending to closed socket (#26932) 2024-11-22 00:04:47 +01:00
webstorage chore: forward v2.1.1 release commit to main (#26981) 2024-11-21 14:35:32 -05:00