mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +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
|
@ -46,6 +46,7 @@
|
|||
#include <LibWeb/Geometry/DOMRectReadOnly.h>
|
||||
#include <LibWeb/HTML/MessagePort.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
#include <LibWeb/WebIDL/DOMException.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -985,6 +986,8 @@ private:
|
|||
return FileAPI::File::create(realm);
|
||||
if (interface_name == "FileList"sv)
|
||||
return FileAPI::FileList::create(realm);
|
||||
if (interface_name == "DOMException"sv)
|
||||
return WebIDL::DOMException::create(realm);
|
||||
if (interface_name == "DOMMatrixReadOnly"sv)
|
||||
return Geometry::DOMMatrixReadOnly::create(realm);
|
||||
if (interface_name == "DOMMatrix"sv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue