From 12b634a91e61aed90c95fcd18f18f53c40f68903 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 9 Oct 2021 13:03:40 +0100 Subject: LibWeb: Fix WebAssembly.Memory.prototype.buffer build --- Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/WebAssembly') diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.cpp index 461e5b4ff9..2a9151f656 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.cpp @@ -55,7 +55,7 @@ JS_DEFINE_NATIVE_FUNCTION(WebAssemblyMemoryPrototype::buffer_getter) if (!memory) return JS::js_undefined(); - auto array_buffer = TRY_OR_DISCARD(JS::ArrayBuffer::create(global_object, &memory->data())); + auto* array_buffer = JS::ArrayBuffer::create(global_object, &memory->data()); array_buffer->set_detach_key(JS::js_string(vm, "WebAssembly.Memory")); return array_buffer; } -- cgit v1.2.3