You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bug fixes
Variable resolver now correctly resolves variables that are captured in a closure.
NativeCallContext<'_> (with a lifetime parameter) now parses correctly in the #[export_module] macro. This is to allow for rust_2018_idioms lints (thanks @ltabis864).
The sync feature now works properly in no-std builds (thanks @misssonder874).
More data-race conditions are caught and returned as errors instead of panicking.
Missing min and max functions where both operands are floats or Decimal are added.
Fixed stack overflow when calling closures recursively (thanks @MageWeiG880).
Engine::call_fn and Engine::call_fn_with_options now correctly use the AST's source field.
(Fuzzing) Fixed crash when using ..= in strings.
(Fuzzing) A recursive stack-overflow bug in Dynamic::is_hashable is fixed.
New features
The break, continue, return and throw statements can now follow the ?? operator to short-circuit operations where the value is ().
A new symbol, $func$, is added to custom syntax to allow parsing of anonymous functions.
The filter, drain and retain methods are added to object maps.