static v8::Handle<v8::Value> containsCallback(const v8::Arguments& args) { INC_STATS("DOM.DOMStringList.contains"); DOMStringList* imp = V8DOMStringList::toNative(args.Holder()); STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, string, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)); return v8Boolean(imp->contains(string)); }
static v8::Handle<v8::Value> containsCallback(const v8::Arguments& args) { DOMStringList* imp = V8DOMStringList::toNative(args.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, string, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)); return v8Boolean(imp->contains(string), args.GetIsolate()); }