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.
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.
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.
Commits
68e409f Merge pull request #889 from schungx/master
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rhai from 1.18.0 to 1.19.0.
Release notes
Sourced from rhai's releases.
Changelog
Sourced from rhai's changelog.
Commits
68e409f
Merge pull request #889 from schungx/master36f6b67
Fix stack overflow.a407edb
Merge pull request #888 from schungx/master112e6e4
Fix stack overflow423f21e
Add filter, drain and retain to maps.7ea07e7
Merge pull request #887 from schungx/masterf7728f7
New test for BuildType with operators.2bf4b72
Fix test.d35fdde
Fix inclusive range bug88f15a5
Merge pull request #885 from schungx/masterDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show