LibWeb: Add {,de}serialization steps for DOMMatrix

This commit is contained in:
Kenneth Myhra 2024-03-09 22:41:26 +01:00 committed by Andreas Kling
commit 8d2f7cfb58
Notes: sideshowbarker 2024-07-17 05:00:08 +09:00
5 changed files with 27 additions and 0 deletions

View file

@ -21,6 +21,12 @@
domMatrixReadOnly = structuredClone(new DOMMatrixReadOnly([10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160]));
println(`DOMMatrixReadOnly: ${JSON.stringify(domMatrixReadOnly)}`);
let domMatrix = structuredClone(new DOMMatrix([10, 20, 30, 40, 50, 60]));
println(`instanceOf DOMMatrix: ${domMatrix instanceof DOMMatrix}`);
println(`DOMMatrix: ${JSON.stringify(domMatrix)}`);
domMatrix = structuredClone(new DOMMatrix([10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160]));
println(`DOMMatrix: ${JSON.stringify(domMatrix)}`);
done();
});
</script>