From 81d73f2987c65463c0f2653f31d3d29d8db1986c Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 17 Jan 2021 21:58:23 +0000 Subject: fix(cli): Check permissions for Deno.emit() (#9139) --- cli/ops/runtime_compiler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/ops/runtime_compiler.rs') 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> = 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, -- cgit v1.2.3