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

This commit is contained in:
Kenneth Myhra 2024-03-02 21:27:58 +01:00 committed by Andrew Kaster
parent 77b1469900
commit d269ac611e
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@ Error
URIError: hello
{"1":2,"a":"b"}
1,4,aaaa
true
1
true

View file

@ -14,6 +14,7 @@
println(structuredClone(new URIError("hello")));
println(structuredClone(JSON.stringify({"a": "b", 1: 2})));
println(structuredClone([1, 4, "aaaa"]));
println(structuredClone([]));
println(structuredClone(new Set(["a", "b", "c"])).has("b"));
println(structuredClone(new Map([["a", 0], ["b", 1], ["c", 2]])).get("b"));