Bug 1516567. Fix JSPropertySpec assertions to deal with not having a getter. r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D15423

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-01-03 16:52:59 +00:00
Родитель 1234d893b3
Коммит df26fc8601
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -1239,11 +1239,9 @@ struct JSPropertySpec {
private:
void checkAccessorsAreNative() const {
MOZ_ASSERT(accessors.getter.native.op);
// We may not have a setter at all. So all we can assert here, for the
// native case is that if we have a jitinfo for the setter then we have
// a setter op too. This is good enough to make sure we don't have a
// SelfHostedWrapper for the setter.
// We may have a getter or a setter or both. And whichever ones we have
// should not have a SelfHostedWrapper for the accessor.
MOZ_ASSERT_IF(accessors.getter.native.info, accessors.getter.native.op);
MOZ_ASSERT_IF(accessors.setter.native.info, accessors.setter.native.op);
}