summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Value.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-17 23:44:25 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-10-18 08:01:38 +0300
commit627b1205ced61ace766bff9b486f2718cd02c26a (patch)
tree696e885049d24552402ad8948ec30c5296d50d1d /Userland/Libraries/LibJS/Runtime/Value.h
parentcc94bba5c0461eebeb13a063c844330b0234e0bd (diff)
downloadserenity-627b1205ced61ace766bff9b486f2718cd02c26a.zip
LibJS: Convert to_i16() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h
index 296bb0eab0..39ea340698 100644
--- a/Userland/Libraries/LibJS/Runtime/Value.h
+++ b/Userland/Libraries/LibJS/Runtime/Value.h
@@ -317,7 +317,7 @@ public:
ThrowCompletionOr<StringOrSymbol> to_property_key(GlobalObject&) const;
ThrowCompletionOr<i32> to_i32(GlobalObject& global_object) const;
ThrowCompletionOr<u32> to_u32(GlobalObject&) const;
- i16 to_i16(GlobalObject&) const;
+ ThrowCompletionOr<i16> to_i16(GlobalObject&) const;
u16 to_u16(GlobalObject&) const;
i8 to_i8(GlobalObject&) const;
u8 to_u8(GlobalObject&) const;