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

LibJS: Define Value::to_string_without_side_effects for String

This commit is contained in:
Timothy Flynn 2023-02-12 21:08:32 -05:00 committed by Linus Groh
parent dc4207323b
commit 3ffb6d9b5a
2 changed files with 28 additions and 11 deletions

View file

@ -394,6 +394,7 @@ public:
ThrowCompletionOr<Value> get(VM&, PropertyKey const&) const;
ThrowCompletionOr<FunctionObject*> get_method(VM&, PropertyKey const&) const;
ErrorOr<String> to_string_without_side_effects() const;
DeprecatedString to_deprecated_string_without_side_effects() const;
Value value_or(Value fallback) const