JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGDefsElement::s_info)) return throwError(exec, TypeError); JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue)); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl()); const UString& extension = args.at(0).toString(exec); JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); return result; }
static v8::Handle<v8::Value> hasExtensionCallback(const v8::Arguments& args) { SVGDefsElement* imp = V8SVGDefsElement::toNative(args.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, extension, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)); return v8Boolean(imp->hasExtension(extension), args.GetIsolate()); }