Skip to content

v1.19.0

Compare
Choose a tag to compare
@schungx schungx released this 30 Jun 13:08
· 40 commits to main since this release
68e409f

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 @ltabis 864).
  • The sync feature now works properly in no-std builds (thanks @misssonder 874).
  • 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 @MageWeiG 880).
  • 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.