LibWeb/URLPattern: Add a stub for URLPattern.exec

Just enough to get the IDL compiling :^)
This commit is contained in:
Shannon Booth 2025-01-14 00:18:02 +13:00 committed by Tim Ledbetter
parent ba382c454a
commit 8088ab5306
Notes: github-actions[bot] 2025-02-10 17:06:13 +00:00
3 changed files with 11 additions and 1 deletions

View file

@ -36,4 +36,11 @@ WebIDL::ExceptionOr<GC::Ref<URLPattern>> URLPattern::construct_impl(JS::Realm& r
return realm.create<URLPattern>(realm);
}
// https://urlpattern.spec.whatwg.org/#dom-urlpattern-exec
Optional<URLPatternResult> URLPattern::exec(URLPatternInput const&, Optional<String> const&) const
{
dbgln("FIXME: Implement URLPattern::match");
return {};
}
}