mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Report real caller information for console APIs to devtools.
This commit is contained in:
parent
0540c4a284
commit
ab7ade4efe
4 changed files with 13 additions and 14 deletions
|
@ -34,7 +34,7 @@ pub fn handle_evaluate_js(global: &GlobalScope, eval: String, reply: IpcSender<E
|
|||
let cx = global.get_cx();
|
||||
let _ac = enter_realm(global);
|
||||
rooted!(in(*cx) let mut rval = UndefinedValue());
|
||||
global.evaluate_js_on_global_with_result(&eval, rval.handle_mut());
|
||||
global.evaluate_script_on_global_with_result(&eval, "<eval>", rval.handle_mut(), 1);
|
||||
|
||||
if rval.is_undefined() {
|
||||
EvaluateJSReply::VoidValue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue