mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibCore: Add a way to check if a property is readonly
This commit is contained in:
parent
f3ecea1fb3
commit
2b38b2f83b
Notes:
sideshowbarker
2024-07-19 00:11:09 +09:00
Author: https://github.com/alimpfard
Commit: 2b38b2f83b
Pull-request: https://github.com/SerenityOS/serenity/pull/4759
Reviewed-by: https://github.com/ADKaster
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ public:
|
|||
JsonValue get() const { return m_getter(); }
|
||||
|
||||
const String& name() const { return m_name; }
|
||||
bool is_readonly() const { return !m_setter; }
|
||||
|
||||
private:
|
||||
String m_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue