mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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.
This commit is contained in:
parent
365e1f48f7
commit
472a370640
17 changed files with 476 additions and 121 deletions
|
@ -112,7 +112,7 @@ impl CjsCodeAnalyzer for CliCjsCodeAnalyzer {
|
|||
Some(source) => source,
|
||||
None => self
|
||||
.fs
|
||||
.read_text_file_sync(&specifier.to_file_path().unwrap())?,
|
||||
.read_text_file_sync(&specifier.to_file_path().unwrap(), None)?,
|
||||
};
|
||||
let analysis = self.inner_cjs_analysis(specifier, &source)?;
|
||||
match analysis {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue