mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
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:
parent
a4d04cc748
commit
45dfa094e9
7 changed files with 259 additions and 12 deletions
|
@ -40,6 +40,8 @@ struct Attribute {
|
|||
Configurable = 1 << 0,
|
||||
Enumerable = 1 << 1,
|
||||
Writable = 1 << 2,
|
||||
HasGet = 1 << 3,
|
||||
HasSet = 1 << 4,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue