browser-use--browser-harness
64dafa2805
Replace naive `"return " in expression` check with a character-level parser that ignores strings, line comments, and block comments. Add `_decode_unserializable_js_value` to handle NaN, ±Infinity, -0, and BigInt. Extract `_runtime_value` and `_runtime_evaluate` to unify error handling across `js()` and `page_info()`. Wrap Runtime.evaluate TimeoutErrors in RuntimeError with expression context. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>