mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
Bug 1518648 - Tighten up a couple of assertions. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D15991 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
61206f7677
commit
e2b1e6991c
@ -121,12 +121,12 @@ class GlobalObject : public NativeObject {
|
||||
"global object slot counts are inconsistent");
|
||||
|
||||
static unsigned constructorSlot(JSProtoKey key) {
|
||||
MOZ_ASSERT(key <= JSProto_LIMIT);
|
||||
MOZ_ASSERT(key < JSProto_LIMIT);
|
||||
return APPLICATION_SLOTS + key;
|
||||
}
|
||||
|
||||
static unsigned prototypeSlot(JSProtoKey key) {
|
||||
MOZ_ASSERT(key <= JSProto_LIMIT);
|
||||
MOZ_ASSERT(key < JSProto_LIMIT);
|
||||
return APPLICATION_SLOTS + JSProto_LIMIT + key;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user