Bug 1987428 - Make CallArgs::operator[] consistent with ::get. a=dmeehan DONTBUILD

Original Revision: https://phabricator.services.mozilla.com/D264095

Differential Revision: https://phabricator.services.mozilla.com/D265484
This commit is contained in:
Andrew McCreight
2025-09-22 14:07:08 +00:00
committed by dmeehan@mozilla.com
parent b16b2d8711
commit 309c387fc9

View File

@@ -210,7 +210,7 @@ class MOZ_STACK_CLASS MOZ_NON_PARAM CallArgsBase {
/* Returns the i-th zero-indexed argument. */
MutableHandleValue operator[](unsigned i) const {
MOZ_ASSERT(i < argc_);
MOZ_RELEASE_ASSERT(i < argc_);
return MutableHandleValue::fromMarkedLocation(&this->argv_[i]);
}