JSValue* jsHTMLButtonElementPrototypeFunctionClick(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSHTMLButtonElement::s_info)) return throwError(exec, TypeError); JSHTMLButtonElement* castedThisObj = static_cast<JSHTMLButtonElement*>(thisValue); HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(castedThisObj->impl()); imp->click(); return jsUndefined(); }
JSValue JSC_HOST_CALL jsHTMLButtonElementPrototypeFunctionClick(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSHTMLButtonElement::s_info)) return throwError(exec, TypeError); JSHTMLButtonElement* castedThisObj = static_cast<JSHTMLButtonElement*>(asObject(thisValue)); HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(castedThisObj->impl()); imp->click(); return jsUndefined(); }