mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -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) {
|
||||
if let Some(mut doc) = self.docs.get_mut(specifier) {
|
||||
doc.version = None;
|
||||
doc.dependencies = None;
|
||||
}
|
||||
self.docs.remove(specifier);
|
||||
}
|
||||
|
||||
pub fn contains_key(&self, specifier: &ModuleSpecifier) -> bool {
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue