mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
LibWeb: Port Intrinsics from DeprecatedString
This commit is contained in:
parent
9cd36839d2
commit
96af80acd1
279 changed files with 305 additions and 304 deletions
|
@ -51,7 +51,7 @@ FormData::~FormData() = default;
|
|||
void FormData::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FormDataPrototype>(realm, "FormData"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FormDataPrototype>(realm, "FormData"_fly_string));
|
||||
}
|
||||
|
||||
// https://xhr.spec.whatwg.org/#dom-formdata-append
|
||||
|
|
|
@ -16,7 +16,7 @@ template<>
|
|||
void Intrinsics::create_web_prototype_and_constructor<FormDataIteratorPrototype>(JS::Realm& realm)
|
||||
{
|
||||
auto prototype = heap().allocate<FormDataIteratorPrototype>(realm, realm);
|
||||
m_prototypes.set("FormDataIterator"sv, prototype);
|
||||
m_prototypes.set("FormDataIterator"_fly_string, prototype);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ FormDataIterator::~FormDataIterator() = default;
|
|||
void FormDataIterator::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FormDataIteratorPrototype>(realm, "FormDataIterator"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FormDataIteratorPrototype>(realm, "FormDataIterator"_fly_string));
|
||||
}
|
||||
|
||||
void FormDataIterator::visit_edges(Cell::Visitor& visitor)
|
||||
|
|
|
@ -34,7 +34,7 @@ ProgressEvent::~ProgressEvent() = default;
|
|||
void ProgressEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::ProgressEventPrototype>(realm, "ProgressEvent"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::ProgressEventPrototype>(realm, "ProgressEvent"_fly_string));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ XMLHttpRequest::~XMLHttpRequest() = default;
|
|||
void XMLHttpRequest::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::XMLHttpRequestPrototype>(realm, "XMLHttpRequest"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::XMLHttpRequestPrototype>(realm, "XMLHttpRequest"_fly_string));
|
||||
}
|
||||
|
||||
void XMLHttpRequest::visit_edges(Cell::Visitor& visitor)
|
||||
|
|
|
@ -22,7 +22,7 @@ XMLHttpRequestUpload::~XMLHttpRequestUpload() = default;
|
|||
void XMLHttpRequestUpload::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::XMLHttpRequestUploadPrototype>(realm, "XMLHttpRequestUpload"));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::XMLHttpRequestUploadPrototype>(realm, "XMLHttpRequestUpload"_fly_string));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue