Lines Matching refs:constructor
274 static bool MyObject_hasInstance(JSContextRef context, JSObjectRef constructor, JSValueRef possibleValue, JSValueRef* exception)
277 UNUSED_PARAM(constructor);
280 JSEvaluateScript(context, JSStringCreateWithUTF8CString("throw 'an exception'"), constructor, JSStringCreateWithUTF8CString("test script"), 1, exception);
358 static bool EvilExceptionObject_hasInstance(JSContextRef context, JSObjectRef constructor, JSValueRef possibleValue, JSValueRef* exception)
361 UNUSED_PARAM(constructor);
364 JSValueRef hasInstance = JSObjectGetProperty(context, constructor, hasInstanceName, exception);
369 JSValueRef result = JSObjectCallAsFunction(context, function, constructor, 1, &possibleValue, exception);
1361 // Verify that creating a constructor for a class with no static functions does not trigger