Fix crash on large console log (#31267)

This commit is contained in:
Smitty 2024-02-06 04:01:47 -05:00 committed by GitHub
parent 3900b07928
commit 036bca69ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 71 additions and 5 deletions

View file

@ -0,0 +1,6 @@
[console-log-large-array.any.html]
[console-log-large-array.any.worker.html]
[console-log-large-array.any.shadowrealm.html]
expected: ERROR

View file

@ -517775,6 +517775,42 @@
{}
]
],
"console-log-large-array.any.js": [
"e5cb92d9d36d4ae43416be7ccba2551249d43a88",
[
"console/console-log-large-array.any.html",
{
"script_metadata": [
[
"global",
"window,dedicatedworker,shadowrealm"
]
]
}
],
[
"console/console-log-large-array.any.shadowrealm.html",
{
"script_metadata": [
[
"global",
"window,dedicatedworker,shadowrealm"
]
]
}
],
[
"console/console-log-large-array.any.worker.html",
{
"script_metadata": [
[
"global",
"window,dedicatedworker,shadowrealm"
]
]
}
]
],
"console-log-symbol.any.js": [
"a2facb6c64e86428383260735ed2df3e88c2c809",
[

View file

@ -0,0 +1,6 @@
[console-log-large-array.any.worker.html]
[console-log-large-array.any.shadowrealm.html]
expected: ERROR
[console-log-large-array.any.html]

View file

@ -0,0 +1,8 @@
// META: global=window,dedicatedworker,shadowrealm
"use strict";
// https://console.spec.whatwg.org/
test(() => {
console.log(new Array(10000000).fill("x"));
console.log(new Uint8Array(10000000));
}, "Logging large arrays works");