1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

LibWeb: Support [de]serialization for Error objects

This commit is contained in:
Idan Horowitz 2023-11-11 01:14:56 +02:00 committed by Andreas Kling
parent 71d4ab367a
commit 1d24e08934
3 changed files with 86 additions and 1 deletions

View file

@ -6,5 +6,7 @@ This is a String object
9007199254740991
1692748800000
/abc/gimsuy
Error
URIError: hello
[object ArrayBuffer]
ERROR: DataCloneError: Cannot serialize Symbol

View file

@ -9,6 +9,8 @@
println(structuredClone(BigInt("0x1fffffffffffff")));
println(structuredClone(Date.UTC(2023, 7, 23)));
println(structuredClone(/abc/gimsuy));
println(structuredClone(new Error()));
println(structuredClone(new URIError("hello")));
{
let arrayBuffer = new ArrayBuffer(6);