Add call_fn_with_global_raw.

This commit is contained in:
Stephen Chung
2022-04-23 13:15:27 +08:00
parent 63592ed648
commit d61f7fa7c2
2 changed files with 80 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ Enhancements
* `to_json` is added to object maps to cheaply convert it to JSON format (`()` is mapped to `null`, all other data types must be supported by JSON)
* A global function `format_map_as_json` is provided which is the same as `to_json` for object maps.
* `FileModuleResolver` now accepts a custom `Scope` to provide constants for optimization.
* A new low-level method `Engine::call_fn_with_global_raw` is added to add speed to repeated function calls.
Version 1.6.1