зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1234d893b3
Коммит
df26fc8601
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче