diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-17 23:57:37 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-18 08:01:38 +0300 |
commit | aad12b050bc2f34e367ef95ad89728a0bd4f662e (patch) | |
tree | 81da361ab91e5d0bfbe4706dccb1759fe2bdb930 /Userland/Libraries/LibJS/Runtime/Value.h | |
parent | 750da61c0fee4990a44b6113169d0740990596b3 (diff) | |
download | serenity-aad12b050bc2f34e367ef95ad89728a0bd4f662e.zip |
LibJS: Convert to_length() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h index 7696fcbc60..49f7cc836b 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.h +++ b/Userland/Libraries/LibJS/Runtime/Value.h @@ -322,7 +322,7 @@ public: ThrowCompletionOr<i8> to_i8(GlobalObject&) const; ThrowCompletionOr<u8> to_u8(GlobalObject&) const; ThrowCompletionOr<u8> to_u8_clamp(GlobalObject&) const; - size_t to_length(GlobalObject&) const; + ThrowCompletionOr<size_t> to_length(GlobalObject&) const; size_t to_index(GlobalObject&) const; double to_integer_or_infinity(GlobalObject&) const; bool to_boolean() const; |