diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-09-30 17:16:16 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-01 21:05:32 +0100 |
commit | 56b381aac0db837b1b840c482edd9a8d67c2600e (patch) | |
tree | 835135e0badd6334e452648a97d60b60024c30da /Userland/Libraries/LibWeb/Infra | |
parent | cc164dc1e2441192020ca04f782763ce33893558 (diff) | |
download | serenity-56b381aac0db837b1b840c482edd9a8d67c2600e.zip |
LibWeb: Cleanup unecessary uses and includes of HTML::Window
The big global refactor left some stragglers behind for atomicity.
Clean up the rest, and remove a ton of includes of LibWeb/HTML/Window.h
Diffstat (limited to 'Userland/Libraries/LibWeb/Infra')
-rw-r--r-- | Userland/Libraries/LibWeb/Infra/JSON.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Infra/JSON.cpp b/Userland/Libraries/LibWeb/Infra/JSON.cpp index 279e667162..943fd384f2 100644 --- a/Userland/Libraries/LibWeb/Infra/JSON.cpp +++ b/Userland/Libraries/LibWeb/Infra/JSON.cpp @@ -53,13 +53,12 @@ WebIDL::ExceptionOr<String> serialize_javascript_value_to_json_string(JS::VM& vm WebIDL::ExceptionOr<ByteBuffer> serialize_javascript_value_to_json_bytes(JS::VM& vm, JS::Value value) { auto& realm = *vm.current_realm(); - auto& global_object = realm.global_object(); // 1. Let string be the result of serializing a JavaScript value to a JSON string given value. auto string = TRY(serialize_javascript_value_to_json_string(vm, value)); // 2. Return the result of running UTF-8 encode on string. [ENCODING] - return TRY_OR_RETURN_OOM(global_object, ByteBuffer::copy(string.bytes())); + return TRY_OR_RETURN_OOM(realm, ByteBuffer::copy(string.bytes())); } } |