diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-10-14 18:01:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 12:31:51 +0000 |
commit | dfbf03eee798da4f42a1bffeebd8edd1d0095406 (patch) | |
tree | d08d28cc6b01b72b0233537abe89faf7a8cf85b7 /ext/node | |
parent | 3eda179220370e9c9093427fb694eed746548008 (diff) |
perf: use fast calls for microtask ops (#26236)
Updates deno_core to 0.312.0
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/ops/require.rs | 2 | ||||
-rw-r--r-- | ext/node/ops/worker_threads.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/ops/require.rs b/ext/node/ops/require.rs index 547336981..7d85ee853 100644 --- a/ext/node/ops/require.rs +++ b/ext/node/ops/require.rs @@ -295,7 +295,7 @@ where let path = ensure_read_permission::<P>(state, &path)?; let fs = state.borrow::<FileSystemRc>(); let canonicalized_path = - deno_core::strip_unc_prefix(fs.realpath_sync(&path)?); + deno_path_util::strip_unc_prefix(fs.realpath_sync(&path)?); Ok(canonicalized_path.to_string_lossy().into_owned()) } diff --git a/ext/node/ops/worker_threads.rs b/ext/node/ops/worker_threads.rs index 4c50092f2..5f139c5dc 100644 --- a/ext/node/ops/worker_threads.rs +++ b/ext/node/ops/worker_threads.rs @@ -52,7 +52,7 @@ where let path = ensure_read_permission::<P>(state, &path)?; let fs = state.borrow::<FileSystemRc>(); let canonicalized_path = - deno_core::strip_unc_prefix(fs.realpath_sync(&path)?); + deno_path_util::strip_unc_prefix(fs.realpath_sync(&path)?); Url::from_file_path(canonicalized_path) .map_err(|e| generic_error(format!("URL from Path-String: {:#?}", e)))? }; |