diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-09 13:03:40 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-09 13:03:40 +0100 |
commit | 12b634a91e61aed90c95fcd18f18f53c40f68903 (patch) | |
tree | 8dc346e0698d4028032078e0493a5587b3d001ae /Userland/Libraries/LibWeb/WebAssembly | |
parent | 5b61b60bbd72c18d2b4c32f04bec0181b9c71471 (diff) | |
download | serenity-12b634a91e61aed90c95fcd18f18f53c40f68903.zip |
LibWeb: Fix WebAssembly.Memory.prototype.buffer build
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly')
-rw-r--r-- | Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |