diff --git a/js/src/vm/GeneratorObject.cpp b/js/src/vm/GeneratorObject.cpp index aad29b910d..be6a30a60a 100644 --- a/js/src/vm/GeneratorObject.cpp +++ b/js/src/vm/GeneratorObject.cpp @@ -86,8 +86,8 @@ GeneratorObject::suspend(JSContext* cx, HandleObject obj, AbstractFramePtr frame if (genObj->hasExpressionStack()) { MOZ_ASSERT(genObj->expressionStack().getDenseInitializedLength() == 0); auto result = SetOrExtendAnyBoxedOrUnboxedDenseElements(cx, - &genObj->expressionStack().as(), - 0, vp, nvalues, ShouldUpdateTypes::DontUpdate); + &genObj->expressionStack(), 0, vp, nvalues, + ShouldUpdateTypes::DontUpdate); if (result == DenseElementResult::Success) { MOZ_ASSERT(genObj->expressionStack().getDenseInitializedLength() == nvalues); break;