diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-27 22:36:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 22:36:33 +0200 |
commit | 212b7dd6da487c070229b6348ec7907b4fecbcf9 (patch) | |
tree | 3eb743f90e8b293182a830722eb4ff26bec72039 /runtime/ops/fs_events.rs | |
parent | a344368603063bcb281e743f3810ca1e4e46e85d (diff) |
feat: Add requesting API name to permission prompt (#15936)
Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com>
Diffstat (limited to 'runtime/ops/fs_events.rs')
-rw-r--r-- | runtime/ops/fs_events.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/ops/fs_events.rs b/runtime/ops/fs_events.rs index 5e185c4bc..6c631bb59 100644 --- a/runtime/ops/fs_events.rs +++ b/runtime/ops/fs_events.rs @@ -118,7 +118,10 @@ fn op_fs_events_open( }; for path in &args.paths { let path = PathBuf::from(path); - state.borrow_mut::<Permissions>().read.check(&path)?; + state + .borrow_mut::<Permissions>() + .read + .check(&path, Some("Deno.watchFs()"))?; watcher.watch(&path, recursive_mode)?; } let resource = FsEventsResource { |