Share constant variables for closures.

This commit is contained in:
Stephen Chung
2020-12-09 21:06:36 +08:00
parent dbee0eb0f5
commit 99dd7a6481
4 changed files with 24 additions and 27 deletions

View File

@@ -10,6 +10,11 @@ Bug fixes
* Constants are no longer propagated by the optimizer if shadowed by a non-constant variable.
* Constants passed as the `this` parameter to Rhai functions now throws an error if assigned to.
Enhancements
------------
* Capturing a constant variable in a closure is now supported, with no cloning.
Version 0.19.7
==============