From 472a37064071c66cd1311cdea2e78de8d2bc0641 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Fri, 19 Apr 2024 18:12:03 -0600 Subject: 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. --- cli/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/node.rs') diff --git a/cli/node.rs b/cli/node.rs index 5f0ecc653..aa62e65b2 100644 --- a/cli/node.rs +++ b/cli/node.rs @@ -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 { -- cgit v1.2.3