LibJS: Pass JS::Value directly to string formatting functions

We don't need to call .to_string_without_side_effects() when passing
a JS::Value in for string formatting. The Formatter will do it for us.
This commit is contained in:
Andreas Kling
2025-12-05 08:01:44 +01:00
committed by Andreas Kling
parent 83824f41c0
commit cb23d65625
Notes: github-actions[bot] 2025-12-10 03:45:48 +00:00
43 changed files with 122 additions and 122 deletions

View File

@@ -134,7 +134,7 @@ WebIDL::ExceptionOr<void> Worker::terminate()
// https://html.spec.whatwg.org/multipage/workers.html#dom-worker-postmessage
WebIDL::ExceptionOr<void> Worker::post_message(JS::Value message, StructuredSerializeOptions const& options)
{
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Post Message: {}", message.to_string_without_side_effects());
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Post Message: {}", message);
// The postMessage(message, transfer) and postMessage(message, options) methods on Worker objects act as if,
// when invoked, they immediately invoked the respective postMessage(message, transfer) and