Remote Debugging Protocol: Difference between revisions

Jump to navigation Jump to search
→‎Finding Descriptors For Single Properties: Define the form of property descriptors.
(→‎Finding Descriptors For Single Properties: Don't omit the property name.)
(→‎Finding Descriptors For Single Properties: Define the form of property descriptors.)
Line 224: Line 224:


where <i>descriptor</i> is a descriptor for the own property of the object named <i>name</i>, or <tt>null</tt> if the object has no such own property.
where <i>descriptor</i> is a descriptor for the own property of the object named <i>name</i>, or <tt>null</tt> if the object has no such own property.
A property descriptor has the form:
  { "configurable":<i>configurable</i>, "enumerable":<i>enumerable</i>, ... }
where <i>configurable</i> and <i>enumerable</i> are boolean values. <i>Configurable</i> is true if the property can be deleted or have its attributes changed. <i>Enumerable</i> is true if the property will be enumerated by a <code>for-in</code> enumeration.
Descriptors for value properties have the form:
  { "configurable":<i>configurable</i>, "enumerable":<i>enumerable</i>,
    "writable":<i>writable</i>, "value":<i>value</i> }
where <i>writable</i> is <code>true</code> if the property's value can be written to; <i>value</i> is a grip on the property's value; and <i>configurable</i> and <i>enumerable</i> are as described above.
Descriptors for accessor properties have the form:
  { "configurable":<i>configurable</i>, "enumerable":<i>enumerable</i>,
    "get":<i>get</i>, "set":<i>set</i> }
where <i>get</i> and <i>set</i> are grips on the property's getter and setter functions; either or both are omitted if the property lacks the given accessor function. <i>Configurable</i> and <i>enumerable</i> are as described above.


<i>TODO: assign to value property</i>
<i>TODO: assign to value property</i>
Confirmed users
496

edits

Navigation menu