From ddee2dff14772ade16e282ad18eda6f5054ce94e Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Mon, 5 Aug 2019 04:23:41 -0700 Subject: Provide option to delete Deno namespace in worker (#2717) --- cli/state.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/state.rs') diff --git a/cli/state.rs b/cli/state.rs index 139584394..f4e3d9c84 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -84,6 +84,8 @@ pub struct State { pub js_compiler: JsCompiler, pub json_compiler: JsonCompiler, pub ts_compiler: TsCompiler, + + pub include_deno_namespace: bool, } impl Clone for ThreadSafeState { @@ -151,6 +153,7 @@ impl ThreadSafeState { argv_rest: Vec, dispatch_selector: ops::OpSelector, progress: Progress, + include_deno_namespace: bool, ) -> Result { let custom_root = env::var("DENO_DIR").map(String::into).ok(); @@ -223,6 +226,7 @@ impl ThreadSafeState { ts_compiler, js_compiler: JsCompiler {}, json_compiler: JsonCompiler {}, + include_deno_namespace, }; Ok(ThreadSafeState(Arc::new(state))) @@ -302,6 +306,7 @@ impl ThreadSafeState { argv, ops::op_selector_std, Progress::new(), + true, ) .unwrap() } -- cgit v1.2.3