testing.stacktrace.Frame Extends
Class representing one stack frame.

Inheritance

Constructor

goog.testing.stacktrace.Frame(contextnamealiasargspath)

Parameters

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.

Instance Methods

Public Protected Private
getName() string
No description.
Returns: string  The function name or empty string if the function is anonymous and the object field which it's assigned to is unknown.
code »
isAnonymous() boolean
No description.
Returns: boolean  Whether the stack frame contains an anonymous function.
code »
toCanonicalString() string
Brings one frame of the stack trace into a common format across browsers.
Returns: string  Pretty printed stack frame.
code »

Instance Properties

alias_ :
No description.
Code »
args_ :
No description.
Code »
context_ :
No description.
Code »
name_ :
No description.
Code »
path_ :
No description.
Code »

Package testing.stacktrace

Package Reference