summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-04-13 15:26:41 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-14 09:59:29 +0200
commitf345f72b5580428da62adcad1bbc65ba0bf58095 (patch)
tree886b27a4ecaee779f7d3e6c8520206abd4b1dd44 /Userland/Libraries/LibWeb
parente79f5b6e857d8f6b79eec5aad3d524237ea0a23b (diff)
downloadserenity-f345f72b5580428da62adcad1bbc65ba0bf58095.zip
LibJS: Port Value::to_object() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssembly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.cpp
index 4ca72447d4..07ddd74a48 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.cpp
@@ -160,7 +160,7 @@ JS::ThrowCompletionOr<size_t> instantiate_module(JS::VM& vm, Wasm::Module const&
HashMap<Wasm::Linker::Name, Wasm::ExternValue> resolved_imports;
auto import_argument = vm.argument(1);
if (!import_argument.is_undefined()) {
- auto* import_object = TRY(import_argument.to_object(vm));
+ auto import_object = TRY(import_argument.to_object(vm));
dbgln("Trying to resolve stuff because import object was specified");
for (Wasm::Linker::Name const& import_name : linker.unresolved_imports()) {
dbgln("Trying to resolve {}::{}", import_name.module, import_name.name);
@@ -171,7 +171,7 @@ JS::ThrowCompletionOr<size_t> instantiate_module(JS::VM& vm, Wasm::Module const&
auto object_or_error = value.to_object(vm);
if (object_or_error.is_error())
break;
- auto* object = object_or_error.release_value();
+ auto object = object_or_error.release_value();
auto import_or_error = object->get(import_name.name);
if (import_or_error.is_error())
break;