mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
js: Print ArrayBuffer.maxByteLength
when present
This commit is contained in:
parent
f350c153e8
commit
a4f9630470
Notes:
sideshowbarker
2024-07-17 18:01:31 +09:00
Author: https://github.com/ForLoveOfCats Commit: https://github.com/SerenityOS/serenity/commit/a4f9630470 Pull-request: https://github.com/SerenityOS/serenity/pull/12595 Reviewed-by: https://github.com/davidot Reviewed-by: https://github.com/linusg
1 changed files with 4 additions and 0 deletions
|
@ -423,6 +423,10 @@ static void print_array_buffer(JS::Object const& object, HashTable<JS::Object*>&
|
||||||
print_type("ArrayBuffer");
|
print_type("ArrayBuffer");
|
||||||
js_out("\n byteLength: ");
|
js_out("\n byteLength: ");
|
||||||
print_value(JS::Value((double)byte_length), seen_objects);
|
print_value(JS::Value((double)byte_length), seen_objects);
|
||||||
|
if (array_buffer.is_resizable_array_buffer()) {
|
||||||
|
js_out("\n maxByteLength: ");
|
||||||
|
print_value(JS::Value((double)array_buffer.max_byte_length()), seen_objects);
|
||||||
|
}
|
||||||
if (!byte_length)
|
if (!byte_length)
|
||||||
return;
|
return;
|
||||||
js_outln();
|
js_outln();
|
||||||
|
|
Loading…
Reference in a new issue