diff --git a/js/src/debugger/Debugger.cpp b/js/src/debugger/Debugger.cpp index 450ea51851ee..49de80b32208 100644 --- a/js/src/debugger/Debugger.cpp +++ b/js/src/debugger/Debugger.cpp @@ -500,7 +500,6 @@ Debugger::Debugger(JSContext* cx, NativeObject* dbg) frames(cx->zone()), generatorFrames(cx), scripts(cx), - lazyScripts(cx), sources(cx), objects(cx), environments(cx), @@ -3518,7 +3517,6 @@ inline void Debugger::forEachWeakMap(const F& f) { f(objects); f(environments); f(scripts); - f(lazyScripts); f(sources); f(wasmInstanceScripts); f(wasmInstanceSources); @@ -3616,7 +3614,7 @@ bool DebugAPI::edgeIsInDebuggerWeakmap(JSRuntime* rt, JSObject* src, }, [=](LazyScript* lazy) { return dst.is() && lazy == &dst.as() && - dbg->lazyScripts.hasEntry(lazy, src); + dbg->scripts.hasEntry(lazy, src); }, [=](WasmInstanceObject* instance) { return dst.is() && instance == &dst.as() && @@ -6156,7 +6154,7 @@ DebuggerScript* Debugger::wrapVariantReferent( // If there is an associated JSScript, this LazyScript is reachable from it, // so this LazyScript is canonical. untaggedReferent->setWrappedByDebugger(); - obj = wrapVariantReferent(cx, lazyScripts, referent); + obj = wrapVariantReferent(cx, scripts, referent); } else { referent.template as(); obj = wrapVariantReferent(cx, wasmInstanceScripts, diff --git a/js/src/debugger/Debugger.h b/js/src/debugger/Debugger.h index 1aa990d0f40d..a94dbc9e3d99 100644 --- a/js/src/debugger/Debugger.h +++ b/js/src/debugger/Debugger.h @@ -749,7 +749,6 @@ class Debugger : private mozilla::LinkedListElement { // An ephemeral map from BaseScript* to Debugger.Script instances. using ScriptWeakMap = DebuggerWeakMap; ScriptWeakMap scripts; - ScriptWeakMap lazyScripts; using BaseScriptVector = JS::GCVector;