mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibWeb: Make create_serialized_type() in-fallible
The ::create() functions have all been converted into in-fallible versions so there is no longer any point in create_serialized_type() being fallible.
This commit is contained in:
parent
53394230ca
commit
490c05ef29
Notes:
github-actions[bot]
2024-11-24 10:12:51 +00:00
Author: https://github.com/kennethmyhra
Commit: 490c05ef29
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2532
1 changed files with 2 additions and 2 deletions
|
@ -896,7 +896,7 @@ public:
|
|||
return WebIDL::DataCloneError::create(realm, "Unsupported type"_string);
|
||||
|
||||
// 3. Set value to a new instance of the interface identified by interfaceName, created in targetRealm.
|
||||
value = TRY(create_serialized_type(interface_name, realm));
|
||||
value = create_serialized_type(interface_name, realm);
|
||||
|
||||
// 4. Set deep to true.
|
||||
deep = true;
|
||||
|
@ -977,7 +977,7 @@ private:
|
|||
GC::MarkedVector<JS::Value> m_memory; // Index -> JS value
|
||||
size_t m_position { 0 };
|
||||
|
||||
static WebIDL::ExceptionOr<GC::Ref<Bindings::PlatformObject>> create_serialized_type(StringView interface_name, JS::Realm& realm)
|
||||
static GC::Ref<Bindings::PlatformObject> create_serialized_type(StringView interface_name, JS::Realm& realm)
|
||||
{
|
||||
if (interface_name == "Blob"sv)
|
||||
return FileAPI::Blob::create(realm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue