Debugger: Difference between revisions

m
(→‎Debugger Handler Functions: finally blocks don't always complete normally)
Line 691: Line 691:
SpiderMonkey only calls this method on assignments to data properties that will succeed; assignments to un-writable data properties fail without notifying the debugger.
SpiderMonkey only calls this method on assignments to data properties that will succeed; assignments to un-writable data properties fail without notifying the debugger.
<dt>extensionsPrevented(<i>frame</i>)
<dt>extensionsPrevented(<i>frame</i>)
The referent has been made non-extensible, as if by a call to <code>Object.preventExtensions</code>.
<dd>The referent has been made non-extensible, as if by a call to <code>Object.preventExtensions</code>.
</dl>
</dl>


For all watchpoint handler methods:
For all watchpoint handler methods:
<ul>
<ul>
<li>Handler calls receive handler object itself as the <code>this</code> value.
<li>Handler calls receive the handler object itself as the <code>this</code> value.
<li>The <i>frame</i> argument is the current stack frame, whose code is about to perform the operation on the object being reported.
<li>The <i>frame</i> argument is the current stack frame, whose code is about to perform the operation on the object being reported.
<li>If the method returns <code>undefined</code>, then SpiderMonkey makes the announced change to the object, and continues execution normally. If the method returns an object:
<li>If the method returns <code>undefined</code>, then SpiderMonkey makes the announced change to the object, and continues execution normally. If the method returns an object:
638

edits