script: propagate &mut JSContext in DebuggerGlobalScope::fire_add_debugee (#44476)

Propagate `&mut JSContext` in `DebuggerGlobalScope::fire_add_debugee`

Testing: Successful build is enough
Fixes: Part of #42638 

Opened to reduces the complexity of #44254

Signed-off-by: Emmanuel Paul Elom <elomemmanuel007@gmail.com>
This commit is contained in:
elomscansio
2026-04-24 15:53:08 +01:00
committed by GitHub
parent 8470478270
commit 8590dd74c9
4 changed files with 14 additions and 14 deletions

View File

@@ -3446,12 +3446,8 @@ impl ScriptThread {
incomplete.theme,
self.this.clone(),
);
self.debugger_global.fire_add_debuggee(
CanGc::from_cx(cx),
window.upcast(),
incomplete.pipeline_id,
None,
);
self.debugger_global
.fire_add_debuggee(cx, window.upcast(), incomplete.pipeline_id, None);
let mut realm = enter_auto_realm(cx, &*window);
let cx = &mut realm;