JSValue* jsClipboardPrototypeFunctionGetData(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSClipboard::s_info)) return throwError(exec, TypeError); JSClipboard* castedThisObj = static_cast<JSClipboard*>(thisValue); return castedThisObj->getData(exec, args); }
EncodedJSValue JSC_HOST_CALL jsClipboardPrototypeFunctionGetData(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSClipboard::s_info)) return throwVMTypeError(exec); JSClipboard* castedThis = static_cast<JSClipboard*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSClipboard::s_info); return JSValue::encode(castedThis->getData(exec)); }