summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Worker.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-09-25 17:28:46 +0100
committerLinus Groh <mail@linusgroh.de>2022-09-25 19:13:31 +0100
commitbbaa05fcf9a2a7b9515319b102a234be930824cd (patch)
tree4113d3e5f6cfa9331f80b62cb9783020c701fdae /Userland/Libraries/LibWeb/HTML/Worker.cpp
parentad04d7ac9b88ecea572cf517f6e01ccf1e95073d (diff)
downloadserenity-bbaa05fcf9a2a7b9515319b102a234be930824cd.zip
LibWeb: Move DOMException from DOM/ to WebIDL/
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Worker.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Worker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp
index 7797b28ff5..6e64ec20bc 100644
--- a/Userland/Libraries/LibWeb/HTML/Worker.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp
@@ -63,7 +63,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Worker>> Worker::create(FlyString const& sc
// 4. If this fails, throw a "SyntaxError" DOMException.
if (!url.is_valid()) {
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Invalid URL loaded '{}'.", script_url);
- return DOM::SyntaxError::create(document.global_object(), "url is not valid");
+ return WebIDL::SyntaxError::create(document.global_object(), "url is not valid");
}
// 5. Let worker URL be the resulting URL record.