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.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()
});