Share constant variables for closures.
This commit is contained in:
@@ -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
|
||||
==============
|
||||
|
Reference in New Issue
Block a user