diff --git a/js/src/jit/CodeGenerator.cpp b/js/src/jit/CodeGenerator.cpp index ac7ef8e93ddc..5af771103912 100644 --- a/js/src/jit/CodeGenerator.cpp +++ b/js/src/jit/CodeGenerator.cpp @@ -3567,7 +3567,7 @@ CodeGenerator::visitNewCallObject(LNewCallObject *lir) return false; #ifdef JSGC_GENERATIONAL - if (templateObj->hasDynamicSlots()) { + if (ins->templateObject()->hasDynamicSlots()) { // Slot initialization is unbarriered in this case, so we must either // allocate in the nursery or bail if that is not possible. masm.jump(ool->entry());