From 10ef0da5a09d876e544d8b297589a492e8c4f6aa Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Tue, 31 Jan 2023 20:03:09 +0800 Subject: [PATCH] Issue #2099 - Remove unnecessary cast in GeneratorObject::suspend's do loop. This resolves build bustage with --enable-debug. --- js/src/vm/GeneratorObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;