New
Version 1.22.0
Bug fixes
- (Fuzzing) An integer-overflow bug from an inclusive range in
get_bitsis fixed (#963). - (Fuzzing) Nested functions marked
privatenow properly cause compilation errors (#993). - Passing function as a function pointer into a function in an imported module now correctly encapsulates the current environment into the generated function pointer (thanks
@dcihlar#976). The same for passing a closure (thanks again,@dcihlar#979). - Revised epsilon-based floating-point comparisons (thanks
@HactarCE#981). - Unneeded optional dependencies are no longer pulled in with features (thanks
@HactarCE#987). Engine::collect_fn_metadatanow properly includes the namespaces of functions in static modules (thanks@therealprofand@elkowar#992).
Enhancements
- Improve display of function call errors by displaying the caller function's source together with line number info (thanks
@rhizoomeand@HactarCE#988). sourceandpositioninNativeCallContextare nowfn_sourceandcall_position. A new methodcall_sourceis added to return the source (if any) of the caller function (thanks@rhizoomeand@HactarCE#989).- The
&&,||and??operators are optimized to allow efficient chaining (#994).