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

LibJS: Define Value::to_string to convert a Value to a String

This commit is contained in:
Timothy Flynn 2023-01-13 12:23:26 -05:00 committed by Linus Groh
parent afeb7273cc
commit c9056b824e
2 changed files with 16 additions and 9 deletions

View file

@ -367,6 +367,7 @@ public:
u64 encoded() const { return m_value.encoded; }
ThrowCompletionOr<String> to_string(VM&) const;
ThrowCompletionOr<DeprecatedString> to_deprecated_string(VM&) const;
ThrowCompletionOr<Utf16String> to_utf16_string(VM&) const;
ThrowCompletionOr<PrimitiveString*> to_primitive_string(VM&);