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
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

@ -16,6 +16,7 @@ namespace Web::URLPattern {
using URLPatternInit = URL::Pattern::Init;
using URLPatternInput = URL::Pattern::Input;
using URLPatternOptions = URL::Pattern::Options;
using URLPatternResult = URL::Pattern::Result;
// https://urlpattern.spec.whatwg.org/#urlpattern
class URLPattern : public Bindings::PlatformObject {
@ -26,6 +27,8 @@ public:
static WebIDL::ExceptionOr<GC::Ref<URLPattern>> construct_impl(JS::Realm&, URLPatternInput const&, String const& base_url, URLPatternOptions const& = {});
static WebIDL::ExceptionOr<GC::Ref<URLPattern>> construct_impl(JS::Realm&, URLPatternInput const&, URLPatternOptions const& = {});
Optional<URLPatternResult> exec(URLPatternInput const&, Optional<String> const&) const;
virtual ~URLPattern() override;
protected: