#include <v8-object.h>
Public Member Functions | |
PropertyDescriptor () | |
PropertyDescriptor (Local< Value > value) | |
PropertyDescriptor (Local< Value > value, bool writable) | |
PropertyDescriptor (Local< Value > get, Local< Value > set) | |
~PropertyDescriptor () | |
Local< Value > | value () const |
bool | has_value () const |
Local< Value > | get () const |
bool | has_get () const |
Local< Value > | set () const |
bool | has_set () const |
void | set_enumerable (bool enumerable) |
bool | enumerable () const |
bool | has_enumerable () const |
void | set_configurable (bool configurable) |
bool | configurable () const |
bool | has_configurable () const |
bool | writable () const |
bool | has_writable () const |
PrivateData * | get_private () const |
PropertyDescriptor (const PropertyDescriptor &)=delete | |
void | operator= (const PropertyDescriptor &)=delete |
An instance of a Property Descriptor, see Ecma-262 6.2.4.
Properties in a descriptor are present or absent. If you do not set enumerable
, configurable
, and writable
, they are absent. If value
, get
, or set
are absent, but you must specify them in the constructor, use empty handles.
Accessors get
and set
must be callable or undefined if they are present.
x()
only if has_x()
returns true.v8::PropertyDescriptor::PropertyDescriptor | ( | ) |
v8::PropertyDescriptor::~PropertyDescriptor | ( | ) |
|
delete |
bool v8::PropertyDescriptor::configurable | ( | ) | const |
bool v8::PropertyDescriptor::enumerable | ( | ) | const |
|
inline |
bool v8::PropertyDescriptor::has_configurable | ( | ) | const |
bool v8::PropertyDescriptor::has_enumerable | ( | ) | const |
bool v8::PropertyDescriptor::has_get | ( | ) | const |
bool v8::PropertyDescriptor::has_set | ( | ) | const |
bool v8::PropertyDescriptor::has_value | ( | ) | const |
bool v8::PropertyDescriptor::has_writable | ( | ) | const |
|
delete |
void v8::PropertyDescriptor::set_configurable | ( | bool | configurable | ) |
void v8::PropertyDescriptor::set_enumerable | ( | bool | enumerable | ) |
bool v8::PropertyDescriptor::writable | ( | ) | const |