diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-04-19 18:12:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 18:12:03 -0600 |
commit | 472a37064071c66cd1311cdea2e78de8d2bc0641 (patch) | |
tree | 94459f249eee0429480e2cea6ac37319e27de41d /cli/resolver.rs | |
parent | 365e1f48f7059f94d4eeb8f5ba8b3949b686b355 (diff) |
feat(runtime): Allow embedders to perform additional access checks on file open (#23208)
Embedders may have special requirements around file opening, so we add a
new `check_open` permission check that is called as part of the file
open process.
Diffstat (limited to 'cli/resolver.rs')
-rw-r--r-- | cli/resolver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/resolver.rs b/cli/resolver.rs index ea12a6687..dfee9a704 100644 --- a/cli/resolver.rs +++ b/cli/resolver.rs @@ -305,7 +305,7 @@ impl NpmModuleLoader { let file_path = specifier.to_file_path().unwrap(); let code = self .fs - .read_text_file_sync(&file_path) + .read_text_file_sync(&file_path, None) .map_err(AnyError::from) .with_context(|| { if file_path.is_dir() { |