summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-26 06:38:45 +0200
committerGitHub <noreply@github.com>2023-03-26 04:38:45 +0000
commit4d09b0c2940105def67f2d09f7984d5a60ca7396 (patch)
treed5b862deb864ddccc8129bea7bf3eb178a7443e5 /cli/worker.rs
parent33362b88c3ef14c1ed36994f8740cb6e05c6e2fe (diff)
refactor: use default implementation of BootstrapOptions (#18439)
Drive-by cleanup while I was looking into serialization of BootstrapOptions. There's no need to use non-default implementation in these places.
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs16
1 files changed, 1 insertions, 15 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 23dd63119..5beef84ff 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -742,21 +742,7 @@ mod tests {
let permissions = PermissionsContainer::new(Permissions::default());
let options = WorkerOptions {
- bootstrap: BootstrapOptions {
- args: vec![],
- cpu_count: 1,
- debug_flag: false,
- enable_testing_features: false,
- locale: deno_core::v8::icu::get_language_tag(),
- location: None,
- no_color: true,
- is_tty: false,
- runtime_version: "x".to_string(),
- ts_version: "x".to_string(),
- unstable: false,
- user_agent: "x".to_string(),
- inspect: false,
- },
+ bootstrap: BootstrapOptions::default(),
extensions: vec![],
startup_snapshot: Some(crate::js::deno_isolate_init()),
unsafely_ignore_certificate_errors: None,