mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
js: Print ArrayBuffer.maxByteLength
when present
This commit is contained in:
parent
f350c153e8
commit
a4f9630470
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…
Add table
Add a link
Reference in a new issue