JSObject * GlobalObject::createBlankPrototype(JSContext *cx, Class *clasp) { JSObject *objectProto = getOrCreateObjectPrototype(cx); if (!objectProto) return NULL; return CreateBlankProto(cx, clasp, *objectProto, *this); }
JSObject * GlobalObject::createBlankPrototype(JSContext *cx, Class *clasp) { Rooted<GlobalObject*> self(cx, this); JSObject *objectProto = getOrCreateObjectPrototype(cx); if (!objectProto) return NULL; return CreateBlankProto(cx, clasp, *objectProto, *self.get()); }
JSObject * GlobalObject::createBlankPrototypeInheriting(JSContext *cx, Class *clasp, JSObject &proto) { return CreateBlankProto(cx, clasp, proto, *this); }