mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Implement StructuredSerialize for BigIntObject and Symbol
This commit is contained in:
committed by
Andreas Kling
parent
f3cf7496a1
commit
b3bd232a5e
Notes:
sideshowbarker
2024-07-16 22:26:05 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/b3bd232a5e Pull-request: https://github.com/SerenityOS/serenity/pull/20703
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user