mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Remove unnecessary value_or() from get()
Object::get() never returns an empty value anymore, as per the spec, so having a value_or() fallback is no longer needed.
This commit is contained in:
parent
57f7e6e775
commit
9555ca99a0
Notes:
sideshowbarker
2024-07-18 10:25:40 +09:00
Author: https://github.com/linusg
Commit: 9555ca99a0
Pull-request: https://github.com/SerenityOS/serenity/pull/8442
Reviewed-by: https://github.com/IdanHo ✅
19 changed files with 56 additions and 56 deletions
|
@ -78,7 +78,7 @@ JS_DEFINE_NATIVE_FUNCTION(StringConstructor::raw)
|
|||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
auto raw_value = cooked->get(vm.names.raw).value_or(js_undefined());
|
||||
auto raw_value = cooked->get(vm.names.raw);
|
||||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue