summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-04 11:49:31 +0100
committerGitHub <noreply@github.com>2024-09-04 10:49:31 +0000
commit5ee671311a174b5461483db788f732fe736b6549 (patch)
tree7313593110d31be8d102a5a499c29abce8f4ebe1 /runtime/web_worker.rs
parent31ecc09b5ae38531cb63680cc40b89d01d8635df (diff)
chore: remove some dead code around DENO_FUTURE env var (#25418)
These codepaths were not used anymore.
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index ad0ac5a3f..e14328861 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -545,13 +545,6 @@ impl WebWorker {
options.bootstrap.enable_op_summary_metrics,
options.strace_ops,
);
- 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()),
@@ -572,7 +565,7 @@ impl WebWorker {
validate_import_attributes_cb: Some(Box::new(
validate_import_attributes_callback,
)),
- import_assertions_support,
+ import_assertions_support: deno_core::ImportAssertionsSupport::Error,
..Default::default()
});