LibWeb: Make base URL of HTML::Script Optional

This is a null or a URL in the spec, which we were previously
representing through the invalid state of URL.
This commit is contained in:
Shannon Booth
2025-02-16 15:53:04 +13:00
committed by Tim Flynn
parent d62cf0a807
commit 705001483a
5 changed files with 9 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ namespace Web::HTML {
GC_DEFINE_ALLOCATOR(Script);
Script::Script(URL::URL base_url, ByteString filename, JS::Realm& realm)
Script::Script(Optional<URL::URL> base_url, ByteString filename, JS::Realm& realm)
: m_base_url(move(base_url))
, m_filename(move(filename))
, m_realm(realm)