Confirmed users
497
edits
(→Properties of the Debug Prototype Object: Clarify breakpoint handler calls.) |
m (→Debugging hooks: Make error report property names look nicer.) |
||
| Line 166: | Line 166: | ||
<dl> | <dl> | ||
<dt | <dt>message | ||
<dd>The fully formatted error message. | <dd>The fully formatted error message. | ||
<dt | <dt>file | ||
<dd>If present, the source file name, URL, etc. (If this property is present, the <i>line</i> property will be too, and vice versa.) | <dd>If present, the source file name, URL, etc. (If this property is present, the <i>line</i> property will be too, and vice versa.) | ||
<dt | <dt>line | ||
<dd>If present, the source line number at which the error occurred. | <dd>If present, the source line number at which the error occurred. | ||
<dt | <dt>lineText | ||
<dd>If present, this is the source code of the offending line. | <dd>If present, this is the source code of the offending line. | ||
<dt | <dt>offset | ||
<dd>The index of the character within lineText at which the error occurred. | <dd>The index of the character within lineText at which the error occurred. | ||
<dt | <dt>warning | ||
<dd>Present and true if this is a warning; absent otherwise. | <dd>Present and true if this is a warning; absent otherwise. | ||
<dt | <dt>strict | ||
<dd>Present and true if this error or warning is due to the strict option (not to be confused with ES strict mode) | <dd>Present and true if this error or warning is due to the strict option (not to be confused with ES strict mode) | ||
<dt | <dt>exception | ||
<dd>Present and true if an exception will be thrown; absent otherwise. | <dd>Present and true if an exception will be thrown; absent otherwise. | ||
<dt | <dt>arguments | ||
<dd>An array of strings, representing the arguments substituted into the error message. | <dd>An array of strings, representing the arguments substituted into the error message. | ||
</dl> | </dl> | ||