Confirmed users
497
edits
m (→Debugging hooks: Make error report property names look nicer.) |
(Clarify descriptions of functions that operate on lexical environments.) |
||
| Line 436: | Line 436: | ||
<dt>getFunctionScope() | <dt>getFunctionScope() | ||
<dd>If the referent is a function, return a <code>Debug.Object</code> instance referring to the lexical | <dd>If the referent is a function, return a <code>Debug.Object</code> instance referring to the lexical environment enclosing the function when it was created. If the referent is not a function, throw a <code>TypeError</code>. | ||
<dt>decompile([<i>pretty</i>]) | <dt>decompile([<i>pretty</i>]) | ||
<dd>If the referent is a function, return the source code for a JavaScript function definition equivalent to this function in its effect and result, as a string. If the referent is not a function, throw a <code>TypeError</code>. If <i>pretty</i> is present and true, produce indented code with line breaks. | <dd>If the referent is a function, return the source code for a JavaScript function definition equivalent to this function in its effect and result, as a string. If the referent is not a function, throw a <code>TypeError</code>. If <i>pretty</i> is present and true, produce indented code with line breaks. | ||
<dt> | <dt>outerEnvironment() | ||
<dd>If the referent is | <dd>If the referent is a lexical environment, return a <code>Debug.Object</code> instance referring to its enclosing lexical environment, or <code>null</code> if it is the outermost environment. If the referent is not a lexical environment, throw a <code>TypeError</code>. | ||
<dt>referentToString() | <dt>referentToString() | ||