diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-12 22:05:35 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-16 14:32:22 +0100 |
commit | 527edb55ade3da2db90d4cc8631aa81adc66a6f7 (patch) | |
tree | 37ae50f787f2462261d36a9fb4abb9bd49738845 /Userland/Libraries/LibWeb/HTML | |
parent | 24e9cea524e3c81bc8c53ef668cd69990b98b3ec (diff) | |
download | serenity-527edb55ade3da2db90d4cc8631aa81adc66a6f7.zip |
LibWeb: Convert usages of Value::TDSWOSE to Value::TSWOSE
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Scripting/ExceptionReporter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Worker.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/ExceptionReporter.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/ExceptionReporter.cpp index 23e00d0393..db35df95eb 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/ExceptionReporter.cpp +++ b/Userland/Libraries/LibWeb/HTML/Scripting/ExceptionReporter.cpp @@ -44,7 +44,7 @@ void report_exception_to_console(JS::Value value, JS::Realm& realm, ErrorInPromi dbgln("\033[31;1mUnhandled JavaScript exception{}:\033[0m {}", error_in_promise == ErrorInPromise::Yes ? " (in promise)" : "", value); } - console.report_exception(*JS::Error::create(realm, value.to_deprecated_string_without_side_effects()), error_in_promise == ErrorInPromise::Yes); + console.report_exception(*JS::Error::create(realm, value.to_string_without_side_effects().release_value_but_fixme_should_propagate_errors().to_deprecated_string()), error_in_promise == ErrorInPromise::Yes); } // https://html.spec.whatwg.org/#report-the-exception diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp index b04a40349a..a430fd579b 100644 --- a/Userland/Libraries/LibWeb/HTML/Worker.cpp +++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp @@ -326,7 +326,7 @@ WebIDL::ExceptionOr<void> Worker::terminate() // https://html.spec.whatwg.org/multipage/workers.html#dom-worker-postmessage void Worker::post_message(JS::Value message, JS::Value) { - dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Post Message: {}", message.to_deprecated_string_without_side_effects()); + dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Post Message: {}", MUST(message.to_string_without_side_effects())); // 1. Let targetPort be the port with which this is entangled, if any; otherwise let it be null. auto& target_port = m_outside_port; |