1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

LibJS: Convert to_numeric() to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-16 21:42:32 +03:00 committed by Linus Groh
parent e35222a76e
commit b8f101888b
5 changed files with 44 additions and 98 deletions

View file

@ -308,7 +308,7 @@ public:
ThrowCompletionOr<PrimitiveString*> to_primitive_string(GlobalObject&);
ThrowCompletionOr<Value> to_primitive(GlobalObject&, PreferredType preferred_type = PreferredType::Default) const;
ThrowCompletionOr<Object*> to_object(GlobalObject&) const;
Value to_numeric(GlobalObject&) const;
ThrowCompletionOr<Value> to_numeric(GlobalObject&) const;
Value to_number(GlobalObject&) const;
BigInt* to_bigint(GlobalObject&) const;
i64 to_bigint_int64(GlobalObject&) const;