Repository navigation
v.0.19.9
This version fixes a bug introduced in 0.19.8 which breaks property access
within closures.
It also removes the confusing differences between packages and modules
by unifying the terminology and API under the global umbrella of modules.
Version 0.19.9 released to crates.io.
Bug fixes
- Fix bug when accessing properties in closures.
- Fix bug when accessing a deep index with a function call.
- Fix bug that sometimes allow assigning to an invalid l-value.
- Fix off-by-one error with
Engine::set_max_call_levels.
Breaking changes
Engine::load_packageis renamedEngine::register_global_moduleand now must explicitly pass a shared [Module].Engine::register_moduleis renamedEngine::register_static_moduleand now must explicitly pass a shared [Module].Package::getis renamedPackage::as_shared_module.Engine::set_module_resolvernow takes a straight module resolver instead of anOption. To disable module resolving, use the newDummyModuleResolver.
Enhancements
Scopeis nowClone + Hash.Engine::register_static_modulenow supports sub-module paths (e.g.foo::bar::baz).Engine::register_custom_operatornow accepts reserved symbols.Engine::register_custom_operatornow returns an error if given a precedence of zero.- The examples
replandrhai_runnerare moved intobinand renamedrhai-replandrhai-runrespectively.