summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs8
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!()),