mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Fixes #10125
This commit is contained in:
parent
65f7a021f0
commit
fe8057105e
2 changed files with 657 additions and 179 deletions
|
@ -124,10 +124,7 @@ impl DocumentCache {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn close(&mut self, specifier: &ModuleSpecifier) {
|
pub fn close(&mut self, specifier: &ModuleSpecifier) {
|
||||||
if let Some(mut doc) = self.docs.get_mut(specifier) {
|
self.docs.remove(specifier);
|
||||||
doc.version = None;
|
|
||||||
doc.dependencies = None;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn contains_key(&self, specifier: &ModuleSpecifier) -> bool {
|
pub fn contains_key(&self, specifier: &ModuleSpecifier) -> bool {
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue