Report real caller information for console APIs to devtools.

This commit is contained in:
Josh Matthews 2020-04-28 16:34:35 -04:00
parent 0540c4a284
commit ab7ade4efe
4 changed files with 13 additions and 14 deletions

View file

@ -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