Add has_override and script calls to function resolution cache.

This commit is contained in:
Stephen Chung
2021-02-07 15:09:27 +08:00
parent a54b88a8b0
commit 7b87f81850
6 changed files with 96 additions and 46 deletions

View File

@@ -619,8 +619,7 @@ impl Module {
if public_only {
self.functions
.get(&hash_fn)
.map(|FuncInfo { access, .. }| access.is_public())
.unwrap_or(false)
.map_or(false, |FuncInfo { access, .. }| access.is_public())
} else {
self.functions.contains_key(&hash_fn)
}