mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibJS: Implement missing checks for SharedArrayBuffer values
This commit is contained in:
committed by
Andreas Kling
parent
299c86db20
commit
526a74f2f1
Notes:
sideshowbarker
2024-07-17 01:28:15 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/526a74f2f1 Pull-request: https://github.com/SerenityOS/serenity/pull/22474
@@ -201,7 +201,7 @@ size_t array_buffer_byte_length(ArrayBuffer const& array_buffer, ArrayBuffer::Or
|
||||
ThrowCompletionOr<void> detach_array_buffer(VM& vm, ArrayBuffer& array_buffer, Optional<Value> key)
|
||||
{
|
||||
// 1. Assert: IsSharedArrayBuffer(arrayBuffer) is false.
|
||||
// FIXME: Check for shared buffer
|
||||
VERIFY(!array_buffer.is_shared_array_buffer());
|
||||
|
||||
// 2. If key is not present, set key to undefined.
|
||||
if (!key.has_value())
|
||||
|
||||
Reference in New Issue
Block a user