mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 21:57:18 +00:00
LibJS: Implement the CloneArrayBuffer AO
This commit is contained in:
parent
d225b5e94c
commit
20d3869182
Notes:
sideshowbarker
2024-07-17 19:08:34 +09:00
Author: https://github.com/IdanHo
Commit: 20d3869182
Pull-request: https://github.com/SerenityOS/serenity/pull/12365
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
2 changed files with 27 additions and 0 deletions
|
@ -76,6 +76,7 @@ private:
|
|||
};
|
||||
|
||||
ThrowCompletionOr<ArrayBuffer*> allocate_array_buffer(GlobalObject&, FunctionObject& constructor, size_t byte_length);
|
||||
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
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue