RingoJS

Module ringo/utils/test

Functions


getStackTrace (trace)

Creates a stack trace and parses it for display.

Parameters

java.lang.StackTraceElement trace

Optional stacktrace to parse. If undefined a stacktrace will be generated

Returns

String

The parsed stack trace


getType (obj)

Returns the type of the object passed as argument.

Parameters

Object obj

Returns

String

The type of the object passed as argument


jsDump (value, lvl)

Converts the value passed as argument into a nicely formatted and indented string

Parameters

Object value

The value to convert into a string

Number lvl

Optional indentation level (defaults to zero)

Returns

String

The string representation of the object passed as argument