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