mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Add serialization and deserilization steps to DOMException
This makes DOMException a Serializable object.
This commit is contained in:
committed by
Andreas Kling
parent
490c05ef29
commit
4c5019f89c
Notes:
github-actions[bot]
2024-11-24 10:12:44 +00:00
Author: https://github.com/kennethmyhra Commit: https://github.com/LadybirdBrowser/ladybird/commit/4c5019f89c6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2532
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user