mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
* Include unimplemented console methods in idl file Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix console.assert signature The condition is optional and there can be multiple messages. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement console.trace Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * ./mach fmt Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Log stack trace when calling console.trace Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update wpt expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Include line/column info in console.trace logs Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Move option out of constant Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update mozjs Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://console.spec.whatwg.org/
|
|
|
|
[ClassString="Console",
|
|
Exposed=*]
|
|
namespace console {
|
|
// Logging
|
|
undefined assert(optional boolean condition = false, any... data);
|
|
undefined clear();
|
|
undefined debug(any... messages);
|
|
undefined error(any... messages);
|
|
undefined info(any... messages);
|
|
undefined log(any... messages);
|
|
// undefined table(optional any tabularData, optional sequence<DOMString> properties);
|
|
undefined trace(any... data);
|
|
undefined warn(any... messages);
|
|
// undefined dir(optional any item, optional object? options);
|
|
// undefined dirxml(any... data);
|
|
|
|
// Counting
|
|
undefined count(optional DOMString label = "default");
|
|
undefined countReset(optional DOMString label = "default");
|
|
|
|
// Grouping
|
|
undefined group(any... data);
|
|
undefined groupCollapsed(any... data);
|
|
undefined groupEnd();
|
|
|
|
// Timing
|
|
undefined time(optional DOMString label = "default");
|
|
undefined timeLog(optional DOMString label = "default", any... data);
|
|
undefined timeEnd(optional DOMString label = "default");
|
|
};
|