Tests/LibWeb: Prove we do not fail serialization of empty strings

This commit is contained in:
Kenneth Myhra 2024-03-02 21:26:00 +01:00 committed by Andrew Kaster
parent 79978063b9
commit 77b1469900
Notes: sideshowbarker 2024-07-17 06:29:49 +09:00
4 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ false
123
123.456
This is a String object
9007199254740991
1692748800000
/abc/gimsuy

View File

@ -5,4 +5,5 @@ false
123
123.456
9007199254740991
This is a string

View File

@ -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));

View File

@ -8,6 +8,7 @@
println(structuredClone(123));
println(structuredClone(123.456));
println(structuredClone(BigInt("0x1fffffffffffff")))
println(structuredClone(""));
println(structuredClone("This is a string"));
});
</script>