Use boxed slices.

This commit is contained in:
Stephen Chung
2022-02-25 08:38:03 +08:00
parent 5931f43d4d
commit 23c74cac61
2 changed files with 33 additions and 30 deletions

View File

@@ -16,10 +16,16 @@ Bug fixes
* `Scope::is_constant` now returns the correct value.
* Exporting a variable that contains a local function pointer (including anonymous function or closure) now raises a runtime error.
Breaking changes
----------------
* `ScriptFnMetadata` fields `params` and `comments` are changed to boxed slices instead of `Vec`. In the vast majority of cases this should not cause code breakage.
Enhancements
------------
* Variable definitions are optimized so that shadowed variables are reused as much as possible to reduce memory consumption.
* `FnAccess` and `FnNamespace` now implement `Ord` and `PartialOrd`.
Version 1.5.0