/* static */ bool Proxy::setPrototype(JSContext* cx, HandleObject proxy, HandleObject proto, ObjectOpResult& result) { MOZ_ASSERT(proxy->hasDynamicPrototype()); if (!CheckRecursionLimit(cx)) return false; return proxy->as<ProxyObject>().handler()->setPrototype(cx, proxy, proto, result); }
/* static */ bool Proxy::getPrototype(JSContext* cx, HandleObject proxy, MutableHandleObject proto) { MOZ_ASSERT(proxy->hasDynamicPrototype()); if (!CheckRecursionLimit(cx)) return false; return proxy->as<ProxyObject>().handler()->getPrototype(cx, proxy, proto); }