From 6e4a1e5f9b10dfd9aa2124501dbe9a53d316d132 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sat, 26 Jun 2021 11:24:11 +0100 Subject: [PATCH] fixup! fix(core/modules): Fix concurrent loading of dynamic imports --- core/modules.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules.rs b/core/modules.rs index 594a8c64331cc5..4f82dc895cc3bc 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -428,7 +428,7 @@ impl Stream for RecursiveModuleLoad { } else { let maybe_referrer = match inner.init { LoadInit::DynamicImport(_, ref referrer) => { - Some(crate::resolve_url(referrer).unwrap()) + crate::resolve_url(referrer).ok() } _ => None, };