summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-12-08 11:50:09 -0500
committerGitHub <noreply@github.com>2022-12-08 11:50:09 -0500
commit91443bbc0b3e5420d8a0b3506f1b18a88d48560a (patch)
tree804e60461874a71af08760f3aa1809c782558ac0 /cli/worker.rs
parenta6b5d05311f54d085a1e44f4a51717b4c0a4c74b (diff)
fix(compile): ensure import map is used when specified in deno config file (#16990)
Closes #14246
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 4762bab1f..27cefc1b8 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -510,7 +510,7 @@ async fn create_main_worker_internal(
.map_or(false, |l| l == log::Level::Debug),
enable_testing_features: ps.options.enable_testing_features(),
locale: deno_core::v8::icu::get_language_tag(),
- location: ps.options.location_flag().map(ToOwned::to_owned),
+ location: ps.options.location_flag().clone(),
no_color: !colors::use_color(),
is_tty: colors::is_tty(),
runtime_version: version::deno(),
@@ -524,7 +524,7 @@ async fn create_main_worker_internal(
unsafely_ignore_certificate_errors: ps
.options
.unsafely_ignore_certificate_errors()
- .map(ToOwned::to_owned),
+ .clone(),
root_cert_store: Some(ps.root_cert_store.clone()),
seed: ps.options.seed(),
source_map_getter: Some(Box::new(module_loader.clone())),
@@ -685,7 +685,7 @@ fn create_web_worker_callback(
unsafely_ignore_certificate_errors: ps
.options
.unsafely_ignore_certificate_errors()
- .map(ToOwned::to_owned),
+ .clone(),
root_cert_store: Some(ps.root_cert_store.clone()),
seed: ps.options.seed(),
create_web_worker_cb,