зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357473 - Update Console to the latest spec - part 4 - Console.trace(), r=bgrins
This commit is contained in:
Родитель
9a89dabb3e
Коммит
309383c5b0
|
@ -963,6 +963,7 @@ METHOD(Error, "error")
|
|||
METHOD(Exception, "exception")
|
||||
METHOD(Debug, "debug")
|
||||
METHOD(Table, "table")
|
||||
METHOD(Trace, "trace")
|
||||
|
||||
/* static */ void
|
||||
Console::Clear(const GlobalObject& aGlobal)
|
||||
|
@ -971,13 +972,6 @@ Console::Clear(const GlobalObject& aGlobal)
|
|||
Method(aGlobal, MethodClear, NS_LITERAL_STRING("clear"), data);
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
Console::Trace(const GlobalObject& aGlobal)
|
||||
{
|
||||
const Sequence<JS::Value> data;
|
||||
Method(aGlobal, MethodTrace, NS_LITERAL_STRING("trace"), data);
|
||||
}
|
||||
|
||||
// Displays an interactive listing of all the properties of an object.
|
||||
METHOD(Dir, "dir");
|
||||
METHOD(Dirxml, "dirxml");
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
Table(const GlobalObject& aGlobal, const Sequence<JS::Value>& aData);
|
||||
|
||||
static void
|
||||
Trace(const GlobalObject& aGlobal);
|
||||
Trace(const GlobalObject& aGlobal, const Sequence<JS::Value>& aData);
|
||||
|
||||
static void
|
||||
Dir(const GlobalObject& aGlobal, const Sequence<JS::Value>& aData);
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace console {
|
|||
void info(any... data);
|
||||
void log(any... data);
|
||||
void table(any... data); // FIXME: The spec is still unclear about this.
|
||||
void trace(); // TODO fix in the following patch
|
||||
void trace(any... data);
|
||||
void warn(any... data);
|
||||
void dir(any... data); // FIXME: This doesn't follow the spec yet.
|
||||
void dirxml(any... data);
|
||||
|
|
Загрузка…
Ссылка в новой задаче