diff options
Diffstat (limited to 'cli/ops/mod.rs')
-rw-r--r-- | cli/ops/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index df3331353..c02b951b2 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -1,7 +1,6 @@ // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. use crate::proc_state::ProcState; -use deno_core::anyhow::bail; use deno_core::error::AnyError; use deno_core::op; use deno_core::Extension; @@ -27,10 +26,5 @@ fn init_proc_state(ps: ProcState) -> Extension { #[op] fn op_npm_process_state(state: &mut OpState) -> Result<String, AnyError> { let proc_state = state.borrow_mut::<ProcState>(); - if !proc_state.options.unstable() { - bail!( - "Unstable use of npm process state. The --unstable flag must be provided." - ) - } Ok(proc_state.npm_resolver.get_npm_process_state()) } |