rhaiscript / rhai

Rhai - An embedded scripting language for Rust.
https://crates.io/crates/rhai
Apache License 2.0
3.73k stars 175 forks source link

blob bug #675

Closed zhuchuanjing closed 1 year ago

zhuchuanjing commented 1 year ago

if obj is a dynamic and bytes is a blob in this dynamic. other.data = obj.bytes will get below error! Expression exceeds maximum complexity

schungx commented 1 year ago

This is not related to BLOB's, but this: https://rhai.rs/book/safety/max-stmt-depth.html

You must be using a debug build which has very low tolerance as default. You can set this limit via Engine::set_max_expr_depths.

schungx commented 1 year ago

Closing this for now. Feel free to reopen if you still have prob.