mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
LibJS: Move DetachArrayBuffer implementation to the ArrayBuffer object
The spec notes that this AO is unused by ECMA-262, but is provided for ECMAScript hosts. Move the definition to a common location to allow test-js to also use it.
This commit is contained in:
parent
ce08fae13b
commit
13d05403ff
Notes:
sideshowbarker
2024-07-17 14:16:51 +09:00
Author: https://github.com/trflynn89
Commit: 13d05403ff
Pull-request: https://github.com/SerenityOS/serenity/pull/13559
Reviewed-by: https://github.com/linusg ✅
4 changed files with 28 additions and 5 deletions
|
@ -81,6 +81,7 @@ private:
|
|||
};
|
||||
|
||||
ThrowCompletionOr<ArrayBuffer*> allocate_array_buffer(GlobalObject&, FunctionObject& constructor, size_t byte_length, Optional<size_t> max_byte_length = {});
|
||||
ThrowCompletionOr<Value> detach_array_buffer(GlobalObject&, ArrayBuffer& array_buffer, Optional<Value> key = {});
|
||||
ThrowCompletionOr<ArrayBuffer*> clone_array_buffer(GlobalObject&, ArrayBuffer& source_buffer, size_t source_byte_offset, size_t source_length, FunctionObject& clone_constructor);
|
||||
|
||||
// 25.1.2.9 RawBytesToNumeric ( type, rawBytes, isLittleEndian ), https://tc39.es/ecma262/#sec-rawbytestonumeric
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue