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