Skip to content

The headless browser for AI agents and web scraping

Merge pull request #747 from ntdatt812/fix/746-evaluate-exception-details

SGavrlaa793904911d
diff --cc crates/obscura-js/src/runtime.rs
index ddef284f,c23561f1..000a5081
--- a/crates/obscura-js/src/runtime.rs
+++ b/crates/obscura-js/src/runtime.rs
@@@ -1938,12 -1657,8 +1968,12 @@@ impl ObscuraJsRuntime
oid.clone(),
format!("globalThis.__obscura_objects['{}']", oid),
);
+ if !return_by_value {
+ self.evaluation_recipes
+ .insert(oid.clone(), cleaned_expr.to_string());
+ }
- if await_promise && return_by_value {
+ if return_by_value {
let read = self
.execute_runtime_script(
"<readResult>",