mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibWeb: Port DOMException interface from DeprecatedString to String
This commit is contained in:
parent
bcb6851c07
commit
41928c2902
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/shannonbooth
Commit: 41928c2902
Pull-request: https://github.com/SerenityOS/serenity/pull/20968
65 changed files with 296 additions and 296 deletions
|
@ -58,7 +58,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Text>> Text::split_text(size_t offset)
|
|||
|
||||
// 2. If offset is greater than length, then throw an "IndexSizeError" DOMException.
|
||||
if (offset > length)
|
||||
return WebIDL::IndexSizeError::create(realm(), "Split offset is greater than length");
|
||||
return WebIDL::IndexSizeError::create(realm(), "Split offset is greater than length"_fly_string);
|
||||
|
||||
// 3. Let count be length minus offset.
|
||||
auto count = length - offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue