![]()
Catches onerror events fired by windows and similar objects.
Arguments:
|
code » | ||||||
Creates a string representing a given primitive or object, and for an
object, all its properties and nested objects. WARNING: If an object is
given, it and all its nested objects will be modified. To detect reference
cycles, this method identifies objects using goog.getUid() which mutates the
object.
Arguments:
Returns: string
A string representation of
obj .
|
code » | ||||||
![]()
Converts an object to an Error if it's a String,
adds a stacktrace if there isn't one,
and optionally adds an extra message.
Arguments:
Returns: !Error
If err is a string, it is used to create a new Error,
which is enhanced and returned. Otherwise err itself is enhanced
and returned.
|
code » | ||||||
Creates a string representing an object and all its properties.
|
code » | ||||||
Recursively outputs a nested array as a string.
|
code » | ||||||
Exposes an exception that has been caught by a try...catch and outputs the
error with a stack trace.
|
code » | ||||||
![]()
Resolves functions to their names. Resolved function names will be cached.
|
code » | ||||||
Gets a function name
|
code » | ||||||
No description.
|
code » | ||||||
Gets the current stack trace, either starting from the caller or starting
from a specified function that's currently on the call stack.
Arguments:
Returns: string
Stack trace.
|
code » | ||||||
Private helper for getStacktrace().
|
code » | ||||||
Gets the current stack trace. Simple and iterative - doesn't worry about
catching circular references or getting the args.
Arguments:
Returns: string
A string with the function names of all functions in the
stack, separated by \n.
|
code » | ||||||
![]()
No description.
|
code » | ||||||
![]()
No description.
|
code » | ||||||
Makes whitespace visible by replacing it with printable characters.
This is useful in finding diffrences between the expected and the actual
output strings of a testcase.
|
code » | ||||||
Normalizes the error/exception object between browsers.
|
code » | ||||||
![]()
No description.
|
code » | ||||||
New onerror handler for this target. This onerror handler follows the spec
according to
http://www.whatwg.org/specs/web-apps/current-work/#runtime-script-errors
The spec was changed in August 2013 to support receiving column information
and an error object for all scripts on the same origin or cross origin
scripts with the proper headers. See
https://mikewest.org/2013/08/debugging-runtime-errors-with-window-onerror
Arguments:
Returns: boolean
Whether to prevent the error from reaching the browser.
|
code » | ||||||
![]()
Set a custom function name resolver.
Arguments:
|
code » |