diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-04 16:56:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-06 00:27:09 +0200 |
commit | 497ead37bcc959a9325aa22b0a233e302b071229 (patch) | |
tree | 5657266abb6d64bef43e251c002d05a392055562 /Userland/Libraries/LibWeb/HTML/Worker.cpp | |
parent | 0e47754ac82b3c9996732fc29dac9d2a1abed8ac (diff) | |
download | serenity-497ead37bcc959a9325aa22b0a233e302b071229.zip |
LibWeb: Make DOMException GC-allocated
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Worker.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Worker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp index 8051bd6332..74abb3d1ea 100644 --- a/Userland/Libraries/LibWeb/HTML/Worker.cpp +++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp @@ -65,7 +65,7 @@ DOM::ExceptionOr<JS::NonnullGCPtr<Worker>> Worker::create(FlyString const& scrip // 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("url is not valid"); + return DOM::SyntaxError::create(document.global_object(), "url is not valid"); } // 5. Let worker URL be the resulting URL record. |