diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp index ea8698c57a7f4e..ea23f37cbeb523 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp @@ -47,9 +47,6 @@ JS::ThrowCompletionOr WebAssemblyMemoryConstructor::construct(Funct if (!address.has_value()) return vm.throw_completion("Wasm Memory allocation failed"); - if (!WebAssemblyObject::s_abstract_machine.store().get(*address)->grow(initial)) - return vm.throw_completion(String::formatted("Wasm Memory grow failed: {}", initial)); - return vm.heap().allocate(realm, realm, *address); }