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:
parent
f3cf7496a1
commit
b3bd232a5e
3 changed files with 29 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue