mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Add serialization and deserilization steps to DOMException
This makes DOMException a Serializable object.
This commit is contained in:
parent
490c05ef29
commit
4c5019f89c
Notes:
github-actions[bot]
2024-11-24 10:12:44 +00:00
Author: https://github.com/kennethmyhra
Commit: 4c5019f89c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2532
5 changed files with 62 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue