Skip to content

Commit 633fc45

Browse files
rcorsitrflynn89
authored andcommitted
LibWeb: Make Worker.cpp compile again with WEB_WORKER_DEBUG enabled
1 parent 5f963e1 commit 633fc45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/LibWeb/HTML/Worker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ void Worker::visit_edges(Cell::Visitor& visitor)
4646
// https://whatpr.org/html/9893/workers.html#dom-worker
4747
WebIDL::ExceptionOr<GC::Ref<Worker>> Worker::create(TrustedTypes::TrustedScriptURLOrString const& script_url, WorkerOptions const& options, DOM::Document& document)
4848
{
49-
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Creating worker with script_url = {}", script_url);
50-
5149
// Returns a new Worker object. scriptURL will be fetched and executed in the background,
5250
// creating a new global environment for which worker represents the communication channel.
5351
// options can be used to define the name of that global environment via the name option,
@@ -64,6 +62,8 @@ WebIDL::ExceptionOr<GC::Ref<Worker>> Worker::create(TrustedTypes::TrustedScriptU
6462
TrustedTypes::InjectionSink::Workerconstructor,
6563
TrustedTypes::Script.to_string()));
6664

65+
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Creating worker with compliant_script_url = {}", compliant_script_url);
66+
6767
// 2. Let outside settings be the current principal settings object.
6868
auto& outside_settings = current_principal_settings_object();
6969

0 commit comments

Comments
 (0)