diff --git a/js/src/vm/Debugger.cpp b/js/src/vm/Debugger.cpp index 3b0117ab942..814ea5c5968 100644 --- a/js/src/vm/Debugger.cpp +++ b/js/src/vm/Debugger.cpp @@ -879,7 +879,7 @@ Debugger::parseResumptionValue(Maybe &ac, bool ok, const Value Rooted obj(cx); RootedShape shape(cx); RootedId returnId(cx, NameToId(cx->names().return_)); - jsid throwId = NameToId(cx->names().throw_); + RootedId throwId(cx, NameToId(cx->names().throw_)); bool okResumption = rv.isObject(); if (okResumption) { obj = &rv.toObject();