diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-01-04 23:15:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 00:15:52 +0100 |
commit | cbc2108525f3a01f4a944104457939b741c9898b (patch) | |
tree | 58f85bcd8998101762623737dc272bff81cad15a /runtime/worker.rs | |
parent | 444eca80a93c2631623578c1febdedb43575a911 (diff) |
feat(cli/standalone): support runtime flags for deno compile (#8738)
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index 58a35cc95..a05c9f758 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -45,7 +45,7 @@ pub struct WorkerOptions { pub args: Vec<String>, pub debug_flag: bool, pub unstable: bool, - pub ca_filepath: Option<String>, + pub ca_data: Option<Vec<u8>>, pub user_agent: String, pub seed: Option<u64>, pub module_loader: Rc<dyn ModuleLoader>, @@ -114,7 +114,7 @@ impl MainWorker { ops::fetch::init( js_runtime, options.user_agent.clone(), - options.ca_filepath.as_deref(), + options.ca_data.clone(), ); ops::timers::init(js_runtime); ops::worker_host::init( @@ -143,7 +143,7 @@ impl MainWorker { ops::tty::init(js_runtime); ops::websocket::init( js_runtime, - options.ca_filepath.as_deref(), + options.ca_data.clone(), options.user_agent.clone(), ); } @@ -270,7 +270,7 @@ mod tests { args: vec![], debug_flag: false, unstable: false, - ca_filepath: None, + ca_data: None, seed: None, js_error_create_fn: None, create_web_worker_cb: Arc::new(|_| unreachable!()), |