Confirmed users
497
edits
(→Property Conventions: Allow monkey-patching.) |
(→Property Conventions: More monkey-patching friendliness.) |
||
| Line 21: | Line 21: | ||
The <code>Debug</code> interface creates various sorts of objects to present the debuggee's state to the debugger. These objects' properties follow some conventions: | The <code>Debug</code> interface creates various sorts of objects to present the debuggee's state to the debugger. These objects' properties follow some conventions: | ||
<ul> | <ul> | ||
<li>Properties described here are configurable. This applies to both "own" and prototype properties, and to data properties | <li>Properties described here are configurable. This applies to both "own" and prototype properties, and to both methods and data properties. | ||
<li>Non-method properties are generally writable value properties. | <li>Non-method properties are generally non-writable value properties. Since they are configurable, they can be made writable, but assigning to them has no effect on the debuggee unless stated otherwise. | ||
<li>Instances and prototypes are extensible; you can add your own properties and methods to them. | <li>Instances and prototypes are extensible; you can add your own properties and methods to them. | ||
</ul> | </ul> | ||