EncodedJSValue jsTestInterfaceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) { JSTestInterfacePrototype* domObject = jsDynamicCast<JSTestInterfacePrototype*>(JSValue::decode(thisValue)); if (UNLIKELY(!domObject)) return throwVMTypeError(state); return JSValue::encode(JSTestInterface::getConstructor(state->vm(), domObject->globalObject())); }
EncodedJSValue jsTestInterfaceConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue thisValue, PropertyName) { UNUSED_PARAM(baseValue); UNUSED_PARAM(thisValue); JSTestInterfacePrototype* domObject = jsDynamicCast<JSTestInterfacePrototype*>(baseValue); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSTestInterface::getConstructor(exec->vm(), domObject->globalObject())); }