deno
40862bee - fix(node): check reads during require resolution (#36461)

Commit
2 days ago
fix(node): check reads during require resolution (#36461) This routes filesystem stats and package metadata reads performed by runtime Node require resolution through Deno's existing read-policy helper. The helper already preserves module-graph and managed npm reads, while runtime-selected paths now follow the same policy as other Node require operations. Read-check failures for package metadata are propagated instead of being treated as a missing package file. Tests cover runtime-selected node_modules directories, package metadata lookups involving a statically loaded module, and existing managed npm require resolution behavior. Validation: - ./tools/format.js --check - cargo fmt --check - ./tools/lint.js --js - cargo build --bin deno - cargo test -p unit_node_tests --test unit_node module_test -- --nocapture - cargo test -p specs_tests --test specs npm::require_resolve_ -- --nocapture
Author
Parents
Loading