diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-01-17 21:58:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 08:58:23 +1100 |
commit | 81d73f2987c65463c0f2653f31d3d29d8db1986c (patch) | |
tree | ca85028b8658860339aa7f98fc9df8586302a320 /cli/ops/runtime_compiler.rs | |
parent | 2b5b93158c1fc8887b2d4e4d1e4fc3d71c795027 (diff) |
fix(cli): Check permissions for Deno.emit() (#9139)
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r-- | cli/ops/runtime_compiler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs index a75a80fdf..481b29a11 100644 --- a/cli/ops/runtime_compiler.rs +++ b/cli/ops/runtime_compiler.rs @@ -66,9 +66,9 @@ async fn op_emit( let mut is_dynamic = false; let handler: Arc<Mutex<dyn SpecifierHandler>> = if let Some(sources) = args.sources { - is_dynamic = true; Arc::new(Mutex::new(MemoryHandler::new(sources))) } else { + is_dynamic = true; Arc::new(Mutex::new(FetchHandler::new( &program_state, runtime_permissions, |