mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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:
committed by
Andreas Kling
parent
83824f41c0
commit
cb23d65625
Notes:
github-actions[bot]
2025-12-10 03:45:48 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/cb23d656254 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7080
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user