Bug 1027402 - Part 1: Remove set* from BaseProxyHandler. (r=bholley)

This commit is contained in:
Eric Faust
2014-06-27 04:44:02 -07:00
parent 52beffeece
commit abf1be407c
7 changed files with 27 additions and 29 deletions

View File

@@ -79,10 +79,10 @@ js::assertEnteredPolicy(JSContext *cx, JSObject *proxy, jsid id,
}
#endif
BaseProxyHandler::BaseProxyHandler(const void *family)
BaseProxyHandler::BaseProxyHandler(const void *family, bool hasPrototype, bool hasSecurityPolicy)
: mFamily(family),
mHasPrototype(false),
mHasSecurityPolicy(false)
mHasPrototype(hasPrototype),
mHasSecurityPolicy(hasSecurityPolicy)
{
}
@@ -538,8 +538,9 @@ DirectProxyHandler::weakmapKeyDelegate(JSObject *proxy)
return UncheckedUnwrap(proxy);
}
DirectProxyHandler::DirectProxyHandler(const void *family)
: BaseProxyHandler(family)
DirectProxyHandler::DirectProxyHandler(const void *family, bool hasPrototype,
bool hasSecurityPolicy)
: BaseProxyHandler(family, hasPrototype, hasSecurityPolicy)
{
}