mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 15:32:51 +00:00
LibJS: Make PrimitiveString::deprecated_string() infallible
Work towards #20449.
This commit is contained in:
parent
c084269e5f
commit
09547ec975
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/awesomekling
Commit: 09547ec975
Pull-request: https://github.com/SerenityOS/serenity/pull/20451
Reviewed-by: https://github.com/trflynn89
17 changed files with 42 additions and 43 deletions
|
@ -20,7 +20,7 @@ ThrowCompletionOr<Value> IsHTMLDDA::call()
|
|||
auto& vm = this->vm();
|
||||
if (vm.argument_count() == 0)
|
||||
return js_null();
|
||||
if (vm.argument(0).is_string() && TRY(vm.argument(0).as_string().deprecated_string()).is_empty())
|
||||
if (vm.argument(0).is_string() && vm.argument(0).as_string().is_empty())
|
||||
return js_null();
|
||||
// Not sure if this really matters, INTERPRETING.md simply says:
|
||||
// * IsHTMLDDA - (present only in implementations that can provide it) an object that:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue