1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:37:34 +00:00

LibWeb: Implement StructuredSerialize for BigIntObject and Symbol

This commit is contained in:
Andrew Kaster 2023-08-21 17:39:44 -06:00 committed by Andreas Kling
parent f3cf7496a1
commit b3bd232a5e
3 changed files with 29 additions and 2 deletions

View file

@ -6,6 +6,15 @@
println(structuredClone(new Number(123)));
println(structuredClone(new Number(123.456)));
println(structuredClone(new String("This is a String object")));
println(structuredClone(BigInt("0x1fffffffffffff")));
println(structuredClone(Date.UTC(2023, 7, 23)));
try {
structuredClone(Symbol("foo"));
println("FAILED")
}
catch(e) {
println("ERROR: " + e.name + ": " + e.message)
}
});
</script>