mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibWeb: Port DOMException interface from DeprecatedString to String
This commit is contained in:
parent
bcb6851c07
commit
41928c2902
65 changed files with 296 additions and 296 deletions
|
@ -64,7 +64,7 @@ void FetchController::abort(JS::Realm& realm, Optional<JS::Value> error)
|
|||
m_state = State::Aborted;
|
||||
|
||||
// 2. Let fallbackError be an "AbortError" DOMException.
|
||||
auto fallback_error = WebIDL::AbortError::create(realm, "Fetch was aborted"sv);
|
||||
auto fallback_error = WebIDL::AbortError::create(realm, "Fetch was aborted"_fly_string);
|
||||
|
||||
// 3. Set error to fallbackError if it is not given.
|
||||
if (!error.has_value())
|
||||
|
|
|
@ -90,7 +90,7 @@ WebIDL::ExceptionOr<void> Body::fully_read(JS::Realm& realm, Web::Fetch::Infrast
|
|||
TRY_OR_THROW_OOM(vm, success_steps(move(byte_buffer)));
|
||||
} else {
|
||||
// Empty, Blob, FormData
|
||||
error_steps(WebIDL::DOMException::create(realm, "DOMException", "Reading from Blob, FormData or null source is not yet implemented"sv));
|
||||
error_steps(WebIDL::DOMException::create(realm, "DOMException"_fly_string, "Reading from Blob, FormData or null source is not yet implemented"_fly_string));
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue