mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Add {,de}serialization steps for DOMMatrix
This commit is contained in:
committed by
Andreas Kling
parent
181424377d
commit
8d2f7cfb58
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/8d2f7cfb58 Pull-request: https://github.com/SerenityOS/serenity/pull/23538 Reviewed-by: https://github.com/ADKaster
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user