Skip to content

Commit

Permalink
Use EcmascriptModulePartAsset::new when not required
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 18, 2024
1 parent dadb4f5 commit 9a209c3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ impl ModuleReference for EsmAssetReference {
.await?
.expect("EsmAssetReference origin should be a EcmascriptModuleAsset");

return Ok(ModuleResolveResult::module(
EcmascriptModulePartAsset::select_part(*module, *part)
return Ok(ModuleResolveResult::module(ResolvedVc::upcast(
EcmascriptModulePartAsset::new(*module, *part)
.to_resolved()
.await?,
)
))
.cell());
}

Expand Down

0 comments on commit 9a209c3

Please sign in to comment.