diff --git a/js/src/debugger/Debugger.cpp b/js/src/debugger/Debugger.cpp index e863ea29bfea..3e6551997739 100644 --- a/js/src/debugger/Debugger.cpp +++ b/js/src/debugger/Debugger.cpp @@ -559,14 +559,13 @@ bool Debugger::getFrame(JSContext* cx, const FrameIter& iter, // was suspended, popping the stack frame, and later resumed (and we // were not stepping, so did not pass through slowPathOnResumeFrame). Rooted genObj(cx); - GeneratorWeakMap::AddPtr gp; if (referent.isGeneratorFrame()) { { AutoRealm ar(cx, referent.callee()); genObj = GetGeneratorObjectForFrame(cx, referent); } if (genObj) { - gp = generatorFrames.lookupForAdd(genObj); + GeneratorWeakMap::Ptr gp = generatorFrames.lookup(genObj); if (gp) { frame = &gp->value()->as(); MOZ_ASSERT(&frame->unwrappedGenerator() == genObj);