LibJS: Add getter/setter support

This patch adds a GetterSetterPair object. Values can now store pointers
to objects of this type. These objects are created when using
Object.defineProperty and providing an accessor descriptor.
This commit is contained in:
Matthew Olsson 2020-05-21 11:14:23 -07:00 committed by Andreas Kling
commit 45dfa094e9
Notes: sideshowbarker 2024-07-19 06:16:10 +09:00
7 changed files with 259 additions and 12 deletions

View file

@ -40,6 +40,8 @@ struct Attribute {
Configurable = 1 << 0,
Enumerable = 1 << 1,
Writable = 1 << 2,
HasGet = 1 << 3,
HasSet = 1 << 4,
};
};