mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Convert this_string_value() to ThrowCompletionOr
This commit is contained in:
parent
233bb89929
commit
60366ae032
Notes:
sideshowbarker
2024-07-18 05:01:22 +09:00
Author: https://github.com/linusg
Commit: 60366ae032
Pull-request: https://github.com/SerenityOS/serenity/pull/10533
Reviewed-by: https://github.com/IdanHo ✅
2 changed files with 10 additions and 8 deletions
|
@ -20,7 +20,9 @@ public:
|
|||
virtual void initialize(GlobalObject&) override;
|
||||
virtual ~StringObject() override;
|
||||
|
||||
const PrimitiveString& primitive_string() const { return m_string; }
|
||||
PrimitiveString const& primitive_string() const { return m_string; }
|
||||
PrimitiveString& primitive_string() { return m_string; }
|
||||
|
||||
virtual Value value_of() const override
|
||||
{
|
||||
return Value(&m_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue