| Index: src/property-descriptor.h
|
| diff --git a/src/property-descriptor.h b/src/property-descriptor.h
|
| index 5fbbfa36ec263de2412a0fad6383d59f118c6c64..cba43ed334f05a9a15e645e0949eb4e4ff79ddfa 100644
|
| --- a/src/property-descriptor.h
|
| +++ b/src/property-descriptor.h
|
| @@ -57,6 +57,16 @@ class PropertyDescriptor {
|
| !has_value() && !has_get() && !has_set();
|
| }
|
|
|
| + bool IsRegularAccessorProperty() const {
|
| + return has_configurable() && has_enumerable() && !has_value() &&
|
| + !has_writable() && has_get() && has_set();
|
| + }
|
| +
|
| + bool IsRegularDataProperty() const {
|
| + return has_configurable() && has_enumerable() && has_value() &&
|
| + has_writable() && !has_get() && !has_set();
|
| + }
|
| +
|
| bool enumerable() const { return enumerable_; }
|
| void set_enumerable(bool enumerable) {
|
| enumerable_ = enumerable;
|
|
|