mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibJS: Make PrimitiveString::deprecated_string() infallible
Work towards #20449.
This commit is contained in:
parent
c084269e5f
commit
09547ec975
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