Enable/disable caching in FileModuleResolver.

This commit is contained in:
Stephen Chung
2021-03-10 23:01:04 +08:00
parent 728ed81173
commit 9b37d84a9b
3 changed files with 41 additions and 8 deletions

View File

@@ -44,6 +44,7 @@ Enhancements
* Previously, `private` functions in an `AST` cannot be called with `call_fn` etc. This is inconvenient when trying to call a function inside a script which also serves as a loadable module exporting part (but not all) of the functions. Now, all functions (`private` or not) can be called in an `AST`. The `private` keyword is relegated to preventing a function from being exported.
* `Dynamic::as_unit` just for completeness sake.
* `bytes` method added for strings to get length quickly (if the string is ASCII-only).
* `FileModuleResolver` can now enable/disable caching.
Version 0.19.13