mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: add test to ensure parsing only happens once on first load (#23837)
This commit is contained in:
parent
9795637724
commit
ddb5449f42
4 changed files with 11 additions and 0 deletions
2
cli/cache/parsed_source.rs
vendored
2
cli/cache/parsed_source.rs
vendored
|
@ -77,6 +77,8 @@ impl ParsedSourceCache {
|
|||
if parsed_source.media_type() == media_type
|
||||
&& parsed_source.text_info().text_str() == source.as_ref()
|
||||
{
|
||||
// note: message used tests
|
||||
log::debug!("Removed parsed source: {}", specifier);
|
||||
return Ok(parsed_source);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue