diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-04 11:49:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:49:31 +0000 |
commit | 5ee671311a174b5461483db788f732fe736b6549 (patch) | |
tree | 7313593110d31be8d102a5a499c29abce8f4ebe1 /runtime/worker.rs | |
parent | 31ecc09b5ae38531cb63680cc40b89d01d8635df (diff) |
chore: remove some dead code around DENO_FUTURE env var (#25418)
These codepaths were not used anymore.
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index c0d839166..02749e7c1 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -477,14 +477,6 @@ impl MainWorker { } }); - let import_assertions_support = if options.bootstrap.future { - deno_core::ImportAssertionsSupport::Error - } else { - deno_core::ImportAssertionsSupport::CustomCallback(Box::new( - crate::shared::import_assertion_callback, - )) - }; - let mut js_runtime = JsRuntime::new(RuntimeOptions { module_loader: Some(options.module_loader.clone()), startup_snapshot: options.startup_snapshot, @@ -510,7 +502,7 @@ impl MainWorker { validate_import_attributes_cb: Some(Box::new( validate_import_attributes_callback, )), - import_assertions_support, + import_assertions_support: deno_core::ImportAssertionsSupport::Error, eval_context_code_cache_cbs: options.v8_code_cache.map(|cache| { let cache_clone = cache.clone(); ( |