JsUnit 1.3 |
![]() |
![]() |
The object is extremely system dependent, since its functionality is not within the range of ECMA 262, 3rd edition. It is supported by JScript and SpiderMonkey and was supported in Netscape Enterprise Server 2.x, but not in the newer version 4.x.
Public Member Functions | |
void | CallStack (Number depth) |
Constructor. | |
void | fill (Number depth) |
Fills the object with the current call stack info. | |
Array< String > | getStack () |
Retrieve call stack as array. | |
String | toString () |
Retrieve call stack as string. | |
void | _fill (void depth) |
Public Attributes | |
Array< String > | mStack |
The array with the stack. |
void CallStack::CallStack | ( | Number | depth | ) |
Constructor.
The object collects the current call stack up to the JavaScript engine. Most engines will not support call stack information with a recursion. Therefore the collection is stopped when the stack has two identical functions in direct sequence.
depth | Maximum recorded stack depth (defaults to 10). |
void CallStack::fill | ( | Number | depth | ) |
Fills the object with the current call stack info.
The function collects the current call stack up to the JavaScript engine. Any previous data of the instance is lost. Most engines will not support call stack information with a recursion. Therefore the collection is stopped when the stack has two identical functions in direct sequence.
depth | Maximum recorded stack depth (defaults to 10). |
Retrieve call stack as array.
The function returns the call stack as Array of Strings.
String CallStack::toString | ( | ) |
Retrieve call stack as string.
The function returns the call stack as string. Each stack frame has an own line and is prepended with the call stack depth.
void CallStack::_fill | ( | void | depth | ) |
The array with the stack.
JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
|
Generated on Fri Oct 19 23:10:48 2007 for JsUnit by doxygen 1.5.2
|