Issue #2099 - Remove unnecessary cast in GeneratorObject::suspend's do loop.

This resolves build bustage with --enable-debug.
This commit is contained in:
Job Bautista 2023-01-31 20:03:09 +08:00 committed by roytam1
commit 10ef0da5a0

View file

@ -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<JSObject>(),
0, vp, nvalues, ShouldUpdateTypes::DontUpdate);
&genObj->expressionStack(), 0, vp, nvalues,
ShouldUpdateTypes::DontUpdate);
if (result == DenseElementResult::Success) {
MOZ_ASSERT(genObj->expressionStack().getDenseInitializedLength() == nvalues);
break;