Bug 988486 - Make more GCRuntime state private and add necessary accessors r=terrence

This commit is contained in:
Jon Coppeard
2014-06-26 10:07:35 +01:00
parent 493a062037
commit 329197b409
21 changed files with 213 additions and 146 deletions

View File

@@ -2729,7 +2729,7 @@ ProxyObject::trace(JSTracer *trc, JSObject *obj)
ProxyObject *proxy = &obj->as<ProxyObject>();
#ifdef DEBUG
if (!trc->runtime()->gc.disableStrictProxyCheckingCount && proxy->is<WrapperObject>()) {
if (trc->runtime()->gc.isStrictProxyCheckingEnabled() && proxy->is<WrapperObject>()) {
JSObject *referent = &proxy->private_().toObject();
if (referent->compartment() != proxy->compartment()) {
/*