summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-15 23:39:42 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-16 22:34:24 +0100
commit9f03647f1f6f22d0cedd73c6b2ed24ace3782d39 (patch)
tree19a22cbeef6920493d921c6d9b41beb9cf010d92 /Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp
parentb1e7e626577d6d8aecdc0a4687ac1166d40ba144 (diff)
downloadserenity-9f03647f1f6f22d0cedd73c6b2ed24ace3782d39.zip
LibJS: Convert to_temporal_overflow() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp
index b9365fd39a..c4d71eeb2c 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp
@@ -131,9 +131,7 @@ PlainDate* to_temporal_date(GlobalObject& global_object, Value item, Object* opt
}
// 4. Perform ? ToTemporalOverflow(options).
- (void)to_temporal_overflow(global_object, *options);
- if (vm.exception())
- return {};
+ (void)TRY_OR_DISCARD(to_temporal_overflow(global_object, *options));
// 5. Let string be ? ToString(item).
auto string = item.to_string(global_object);