summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index c1713f815..988845840 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -137,7 +137,7 @@ pub struct WebWorkerOptions {
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>,
@@ -219,7 +219,7 @@ impl WebWorker {
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(
@@ -237,7 +237,7 @@ impl WebWorker {
ops::io::init(js_runtime);
ops::websocket::init(
js_runtime,
- options.ca_filepath.as_deref(),
+ options.ca_data.clone(),
options.user_agent.clone(),
);
@@ -483,7 +483,7 @@ mod tests {
apply_source_maps: false,
debug_flag: false,
unstable: false,
- ca_filepath: None,
+ ca_data: None,
user_agent: "x".to_string(),
seed: None,
module_loader,