1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 13:00:36 -05:00
denoland-deno/ext/node
Filip Stevanovic 8fc4796ed5
fix(ext/node): Fix fs.access/fs.promises.access with X_OK mode parameter on Windows (#27407)
- Fixes an issue on Windows where the `fs.constants.X_OK` flag caused
`fs.access` and `fs.promises.access` to incorrectly throw a "permission
denied" error
- Introduced formatting changes due to the formatting tool
- Fixed the issue by always removing the `X_OK` bit from the mode
variable m (not sure if it's necessary to check for the presence of it
in the `mode` param first?)
- Updated unit tests to handle the mentioned constant
- `X_OK` bit is ignored in the Node implementation and should behave
like `F_OK`

fs constants Node documentation:
https://nodejs.org/api/fs.html#fsconstants

fixes https://github.com/denoland/deno/issues/27405
2024-12-18 14:52:37 -08:00
..
benchmarks fix(runtime): use more null proto objects again (#25040) 2024-09-06 12:52:59 +02:00
ops chore: upgrade libc (#27414) 2024-12-18 14:47:21 +01:00
polyfills fix(ext/node): Fix fs.access/fs.promises.access with X_OK mode parameter on Windows (#27407) 2024-12-18 14:52:37 -08:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml fix(ext/node): sort list of built-in modules alphabetically (#27410) 2024-12-18 14:44:53 +01: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 fix(ext/node): support createConnection option in node:http.request() (#25470) 2024-12-13 01:44:42 +01:00
polyfill.rs fix(ext/node): sort list of built-in modules alphabetically (#27410) 2024-12-18 14:44:53 +01:00
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.