LibWeb: Fix WebAssembly.Memory.prototype.buffer build

This commit is contained in:
Linus Groh 2021-10-09 13:03:40 +01:00
parent 5b61b60bbd
commit 12b634a91e
Notes: sideshowbarker 2024-07-18 02:53:44 +09:00

View file

@ -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;
}