diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-29 00:37:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-29 00:37:33 +0100 |
commit | 30440134cbab4851413ea1f0649e5272b50ea48b (patch) | |
tree | ba39e496588531913dd60a5489cf96e65a9571b8 /Libraries/LibJS/Runtime/Array.h | |
parent | 56936b97d001bd72bd7ad2f7796f4ec6e171b100 (diff) | |
download | serenity-30440134cbab4851413ea1f0649e5272b50ea48b.zip |
LibJS+LibWeb: Move native properties to separate getters/setters
This was a bit cumbersome now, but it gets us closer to a format suited
for code generation.
Diffstat (limited to 'Libraries/LibJS/Runtime/Array.h')
-rw-r--r-- | Libraries/LibJS/Runtime/Array.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/Array.h b/Libraries/LibJS/Runtime/Array.h index e43e845526..61c45644a0 100644 --- a/Libraries/LibJS/Runtime/Array.h +++ b/Libraries/LibJS/Runtime/Array.h @@ -50,6 +50,9 @@ private: virtual Optional<Value> get_own_property(const Object& this_object, const FlyString& property_name) const override; virtual bool put_own_property(Object& this_object, const FlyString& property_name, Value) override; + static Value length_getter(Interpreter&); + static void length_setter(Interpreter&, Value); + Vector<Value> m_elements; }; |