Tests/LibWeb: Prove we do not fail serialization of empty strings
This commit is contained in:
parent
79978063b9
commit
77b1469900
Notes:
sideshowbarker
2024-07-17 06:29:49 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/77b1469900 Pull-request: https://github.com/SerenityOS/serenity/pull/23438 Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ false
|
|||
123
|
||||
123.456
|
||||
This is a String object
|
||||
|
||||
9007199254740991
|
||||
1692748800000
|
||||
/abc/gimsuy
|
||||
|
|
|
@ -5,4 +5,5 @@ false
|
|||
123
|
||||
123.456
|
||||
9007199254740991
|
||||
|
||||
This is a string
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
println(structuredClone(new Number(123)));
|
||||
println(structuredClone(new Number(123.456)));
|
||||
println(structuredClone(new String("This is a String object")));
|
||||
println(structuredClone(new String("")));
|
||||
println(structuredClone(BigInt("0x1fffffffffffff")));
|
||||
println(structuredClone(Date.UTC(2023, 7, 23)));
|
||||
println(structuredClone(/abc/gimsuy));
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
println(structuredClone(123));
|
||||
println(structuredClone(123.456));
|
||||
println(structuredClone(BigInt("0x1fffffffffffff")))
|
||||
println(structuredClone(""));
|
||||
println(structuredClone("This is a string"));
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue