mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Fix WebAssembly.Memory.prototype.buffer build
This commit is contained in:
parent
5b61b60bbd
commit
12b634a91e
Notes:
sideshowbarker
2024-07-18 02:53:44 +09:00
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue