diff options
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(); ( |