mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00: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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user