Home | History | Annotate | Download | only in api

Lines Matching refs:prototype

52     inline bool isType(JSValueRef value, JSObjectRef constructor, JSValueRef prototype) const;
53 inline void initializeMember(JSObjectRef globalObject, JSStringRef prototypeName, const char* type, JSObjectRef& constructor, JSValueRef& prototype);
80 propertyName.adopt(JSStringCreateWithUTF8CString("prototype"));
105 inline void QScriptOriginalGlobalObject::initializeMember(JSObjectRef globalObject, JSStringRef prototypeName, const char* type, JSObjectRef& constructor, JSValueRef& prototype)
110 // Save references to the Type constructor and prototype.
116 // Note that this is not the [[Prototype]] internal property (which we could
117 // get via JSObjectGetPrototype), but the Type.prototype, that will be set
118 // as [[Prototype]] of Type instances.
119 prototype = JSObjectGetProperty(m_context, constructor, prototypeName, &exception);
120 Q_ASSERT(JSValueIsObject(m_context, prototype));
121 JSValueProtect(m_context, prototype);
199 inline bool QScriptOriginalGlobalObject::isType(JSValueRef value, JSObjectRef constructor, JSValueRef prototype) const
202 // is an object of the Type if it was created with the Type constructor or if it is the Type.prototype.
204 bool result = JSValueIsInstanceOfConstructor(m_context, value, constructor, &exception) || JSValueIsStrictEqual(m_context, value, prototype);