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:
committed by
dmeehan@mozilla.com
parent
b16b2d8711
commit
309c387fc9
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user