Changes

Jump to: navigation, search

Remote Debugging Protocol

1,157 bytes added, 23:09, 8 July 2011
Finding Descriptors For Single Properties: Define the form of property descriptors.
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>
Confirm
496
edits

Navigation menu