LibWeb: Add serialization and deserilization steps to DOMException

This makes DOMException a Serializable object.
This commit is contained in:
Kenneth Myhra 2024-11-22 12:17:18 +01:00 committed by Andreas Kling
commit 4c5019f89c
Notes: github-actions[bot] 2024-11-24 10:12:44 +00:00
5 changed files with 62 additions and 1 deletions

View file

@ -61,6 +61,10 @@
println(`CryptoKey.algorithm: ${JSON.stringify(clonedCryptoKey.algorithm)}`);
println(`CryptoKey.usages: ${JSON.stringify(clonedCryptoKey.usages)}`);
let domException = structuredClone(new DOMException("Index out of bounds", "IndexSizeError"));
println(`instanceOf DOMException: ${domException instanceof DOMException}`);
println(`DOMException: ${domException.message} - ${domException.name}`);
done();
});
</script>