mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibJS: Define Value::to_string_without_side_effects for String
This commit is contained in:
parent
dc4207323b
commit
3ffb6d9b5a
2 changed files with 28 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue