mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix crash on large console log (#31267)
This commit is contained in:
parent
3900b07928
commit
036bca69ae
5 changed files with 71 additions and 5 deletions
|
@ -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
|
|
@ -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",
|
||||
[
|
||||
|
|
|
@ -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]
|
8
tests/wpt/tests/console/console-log-large-array.any.js
Normal file
8
tests/wpt/tests/console/console-log-large-array.any.js
Normal 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");
|
Loading…
Add table
Add a link
Reference in a new issue