mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 987111 - Introduce a method to determine whether a given PropertyDescriptor is an accessor prop. r=terrence
This commit is contained in:
parent
67b3be8d7e
commit
32a5ba085c
@ -2895,6 +2895,7 @@ class PropertyDescriptorOperations
|
||||
bool hasGetterObject() const { return desc()->attrs & JSPROP_GETTER; }
|
||||
bool hasSetterObject() const { return desc()->attrs & JSPROP_SETTER; }
|
||||
bool hasGetterOrSetterObject() const { return desc()->attrs & (JSPROP_GETTER | JSPROP_SETTER); }
|
||||
bool hasGetterOrSetter() const { return desc()->getter || desc()->setter; }
|
||||
bool isShared() const { return desc()->attrs & JSPROP_SHARED; }
|
||||
bool isIndex() const { return desc()->attrs & JSPROP_INDEX; }
|
||||
bool hasAttributes(unsigned attrs) const { return desc()->attrs & attrs; }
|
||||
|
Loading…
Reference in New Issue
Block a user