The goog.testing.stacktrace.Frame Class

goog.testing.stacktrace.Frame(context, name, alias, args, path)

Class representing one stack frame.

context {string}
Context object, empty in case of global functions or if the browser doesn't provide this information.
name {string}
Function name, empty in case of anonymous functions.
alias {string}
Alias of the function if available. For example the function name will be 'c' and the alias will be 'b' if the function is defined as a.b = function c() {};.
args {string}
Arguments of the function in parentheses if available.
path {string}
File path or URL including line number and optionally column number separated by colons.

.getName()

returns {string}
The function name or empty string if the function is anonymous and the object field which it's assigned to is unknown.

.isAnonymous()

returns {boolean}
Whether the stack frame contains an anonymous function.

.toCanonicalString()

Brings one frame of the stack trace into a common format across browsers.

returns {string}
Pretty printed stack frame.